Do

GNOME Session plugin does not work

Asked by Miroslav Mzik

I installed GNOME Session plugin and it does not work for me. When I type in for example "shutdown" the appropriate action is shown however after hitting Enter nothing happens. This is the same with "restart" etc. Any idea what might be wrong? Mirek

(I installed GNOME-Do 0.4.2.0 from source on Ubuntu Feisty, I tried installing the Session plugin from source as well as downloding it from https://wiki.ubuntu.com/GnomeDo/Plugins with the same result)

Question information

Language:
English Edit question
Status:
Solved
For:
Do Edit question
Assignee:
No assignee Edit question
Solved by:
Elliot Murphy
Solved:
Last query:
Last reply:
Revision history for this message
Richard Harding (rharding) said :
#1

Can you make sure you run Gnome Do from the command line and look for any output that might hint at the issue? I'm not sure if it works well on Feisty so it might be something missing from the earlier version of Ubuntu, but not sure.

Revision history for this message
Miroslav Mzik (mmzik) said :
#2

It prints out: "Could not find PowerManagement on D-Bus." when I try launching the "shutdown" action.

I also observed that I have some error messages when GNOME-Do starts. See them below. Though I think I did not have them yesterday ... Mirek

mirek@apricot:~$ gnome-do

(/usr/local/lib/gnome-do/Do.exe:5488): GLib-CRITICAL **: g_hash_table_lookup: assertion `hash_table != NULL' failed

(/usr/local/lib/gnome-do/Do.exe:5488): libgnomevfs-WARNING **: Internal error: the configuration system was not initialized. Did you call _gnome_vfs_configuration_init?

< some lines removed - this repeats many times >

[Info 21:33:35.333] Deserializing HistogramRelevanceProvider...
[Info 21:33:35.491] Successfully deserialized HistogramRelevanceProvider.
[Info 21:33:35.756] Successfully loaded "Applications" item source.
[Info 21:33:36.049] Successfully loaded "Define" action.
[Info 21:33:36.056] Successfully loaded "Copy to..." action.
[Info 21:33:36.163] Successfully loaded "Move to..." action.
[Info 21:33:36.169] Successfully loaded "Move to Trash" action.
[Info 21:33:36.586] Successfully loaded "File Indexer" item source.
[Info 21:33:36.745] Successfully loaded "Firefox Bookmarks" item source.
[Info 21:33:36.752] Successfully loaded "GNOME Special Locations" item source.
[Info 21:33:36.858] Successfully loaded "Email" action.
[Info 21:33:36.864] Successfully loaded "Open" action.
[Info 21:33:36.870] Successfully loaded "Open Terminal Here" action.
[Info 21:33:37.018] Successfully loaded "Open URL" action.
[Info 21:33:37.188] Successfully loaded "Recent Files" item source.
[Info 21:33:37.194] Successfully loaded "Reveal" action.
[Info 21:33:37.300] Successfully loaded "Run" action.
[Info 21:33:37.307] Successfully loaded "Run in Terminal" action.
[Info 21:33:37.319] Successfully loaded "Internal GNOME Do Items" item source.
[Info 21:33:37.326] Successfully loaded "GNOME Do Item Sources" item source.
[Info 21:33:37.565] Searching for plugins in directory
                    /home/mirek/.local/share/gnome-do/plugins
[Info 21:33:37.687] Successfully loaded "GNOME Session Commands" item source.
[Info 21:33:37.809] Successfully loaded "Play" action.
[Info 21:33:37.814] Successfully loaded "Add to Play Queue" action.
[Info 21:33:39.315] Successfully loaded "Rhythmbox Music" item source.
[Info 21:33:39.321] Searching for plugins in directory /usr/local/share/gnome-do/plugins
[Info 21:33:39.431] Searching for plugins in directory /usr/share/gnome-do/plugins
[Warn 21:33:39.540] Could not read plugins directory /usr/share/gnome-do/plugins:
                    Directory '/usr/share/gnome-do/plugins' not found.
[Info 21:33:40.676] Universe contains 1559 objects.
36
[Info 21:33:42.753] Binding key '<Super>space' for
                    '/apps/gnome-do/preferences/key_binding'. You may change this
                    keybinding with Configuration Editor (gconf-editor).

Revision history for this message
Best Elliot Murphy (statik) said :
#3

It looks like the dbus interface to power management is not there in Feisty, it is a relatively new interface. I admit I didn't think very much about backward compatibility when I wrote this.

It would probably be possible to code a fall-back method for shutting down, restarting, etc. that would be used if the dbus interface could not be found, but unfortunately I don't have time to work on this. I would probably just code this to call out to the command line if the dbus interface wasn't there.

Revision history for this message
Miroslav Mzik (mmzik) said :
#4

Thanks Elliot Murphy, that solved my question.

Revision history for this message
Miroslav Mzik (mmzik) said :
#5

Do not bother with the falback method. I will be upgrading to Hardy soon ... Mirek