Do

Is Gnome-Do meant keep running as a process after disappearing?

Asked by Pimple

Every time I open Gnome-Do and do whatever, it leaves a process running in the background. Eventually I'll have a thousand little Gnome-Do's running and not showing, all seeming to reserve some measure of resources. Is this intentional for some purpose?

Question information

Language:
English Edit question
Status:
Solved
For:
Do Edit question
Assignee:
No assignee Edit question
Solved by:
Jymbob
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
David Siegel (djsiegel-deactivatedaccount) said :
#1

Please provide some details about the system you are using -- distro, version, etc. You are not experiencing the expected behavior. It sounds like you don't have DBus.

Revision history for this message
Pimple (ferociouscookiemonster) said :
#2

Ah, I think that may very well be it. I do have dbus installed, but don't recall doing anything besides merging it (gentoo ftw), and I've had a few other programs complaining about it, though I haven't noticed any effect there. I'll look into that. Thanks :)

Revision history for this message
Pimple (ferociouscookiemonster) said :
#3

Hmm I don't get this. I've updated Dbus to 1.1.2, but there's no difference, even when I run it with dbus-launch. I do, however, get these two error messages like a thousand times when I run it in the terminal:

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

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

I'll have to do some googling for that.

Revision history for this message
Jymbob (james-scholes) said :
#4

Are you launching it with another "gnome-do" command every time? That would explain what you're seeing, as you'd effectively be creating a new instance every time, rather than just summoning the instance already running.

You can summon it with: dbus-send --session --type=method_call --dest='org.gnome.Do' '/org/gnome/Do/Controller' 'org.gnome.Do.Controller.Summon'

(from https://answers.launchpad.net/do/+question/23703)

Revision history for this message
Pimple (ferociouscookiemonster) said :
#5

It works nicely when I launch it with that command, but then it doesn't seem to open gnome-do if it isn't already running? Can I start an instance of the program without it popping up somehow?

Revision history for this message
Best Jymbob (james-scholes) said :
#6

Yes. run "gnome-do --quiet" to start without displaying the popup.

To summarise: a session should only be told to launch gnome-do once with the command "gnome-do --quiet", which sets it running in the background. A good place to run this is at login by adding it to the session startup script (e.g. with Session Manager in GNOME)
It can then be summoned either with the keyboard shortcut <meta>Space (which, AAUI, uses a hook into Tomboy) or with the following command:

dbus-send --session --type=method_call --dest='org.gnome.Do' '/org/gnome/Do/Controller' 'org.gnome.Do.Controller.Summon'

...which can be mapped to anything you like e.g. metacity global shortcuts, compiz global shortcuts.

Revision history for this message
Pimple (ferociouscookiemonster) said :
#7

Thanks a lot! :)

Revision history for this message
Pimple (ferociouscookiemonster) said :
#8

Thanks Jymbob, that solved my question.