Ask Your Question

How does Java Script DBUS interface work?

asked 2013-03-20 17:17:45 -0500

maxyan gravatar image

I was trying to tweak Gnome-Shell terminal extension, by shrinking its width, and changing position. I couldn't found such variable in any of provided file, but I have found this:

// dbus interface
const DropDownTerminalIface =
<interface name="org.zzrough.GsExtensions.DropDownTerminal">
    <property name="Pid" type="i" access="read"/>
    <method name="SetGeometry">
        <arg name="x" type="i" direction="in"/>
        <arg name="y" type="i" direction="in"/>
        <arg name="width" type="i" direction="in"/>
        <arg name="height" type="i" direction="in"/>
    <method name="IsOpened"><arg type="b" direction="out"/></method>
    <method name="Toggle"/>
    <method name="Focus"/>
    <method name="Quit"/>
    <signal name="Failure">
        <arg type="s" name="name"/>
        <arg type="s" name="cause"/>

Looks like a template for XML file, but I can't find any corresponding XML-like file. How does it work? Can you point me a wiki or documentation?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-07-25 12:58:49 -0500

mcepl gravatar image

This is actually a XML object ... remember, gjs is based on Mozilla JavaScript engine so it contains E4X ( ignore the fact that it is depreceated in the Firefox itself).

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2013-03-20 17:17:45 -0500

Seen: 278 times

Last updated: Jul 25 '14