python - Problems with GNOME Panel applet execution -


i'm developing gnome panel applet gnome 3 (with d-bus) in python.

i'm having problem this, when open add panel dialog, applet appear, when select , press on add, gnome panel never launch executable script contain applet code (the file has execution permissions). when execute script manually, added applets works fine.

i have installed panel-applet file in /usr/share/gnome-panel/4.0/applets , dbus service file in /usr/share/dbus-1/services.

if helps, files following:

/usr/share/gnome-panel/4.0/applets/org.gnome.panel.applet.dynamicseparatorapplet.panel-applet

[applet factory] id=dynamicseparatorappletfactory name=dynamic separator applet factory location=/usr/lib/dynamic-separator-applet/dynamic-separator-applet description=dynamic separator applet factory  [dynamicseparatorapplet] name=dynamic separator name[es]=separador dinámico description=create separator configurable size description[es]=crea un separador con tamaño configurable icon=dynamic-separator-applet bonoboid=oafiid:gnome_dynamicseparatorapplet 

/usr/share/dbus-1/services/org.gnome.panel.applet.dynamicseparatorappletfactory.service

[d-bus service] names=org.gnome.panel.applet.dynamicseparatorappletfactory exec=/usr/lib/dynamic-separator-applet/dynamic-separator-applet 

anyone have suggestion?

i found solution.

in d-bus service file, have names key, , should name, so, correct service file should be:

[d-bus service] name=org.gnome.panel.applet.dynamicseparatorappletfactory exec=/usr/lib/dynamic-separator-applet/dynamic-separator-applet 

Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -

delphi - How to convert bitmaps to video? -