GNOME Bugzilla – Bug 512237
f-spot can't be run as other user with sudo
Last modified: 2008-02-02 23:12:44 UTC
I am trying to share F-Spot among a group of users. I created a new user called 'photos', and added the old users to the 'photos' group. After running F-Spot once from the 'photos' user account, I tried to share the application from another user account, but the application stops with the following error messages: otheruser$ sudo -u photos f-spot us.Bus.get_Session () [0x00000] at NDesk.DBus.BusG.Init () [0x00000] at FSpot.Driver.Main (System.String[] args) [0x00000] --- End of inner exception stack trace --- at FSpot.Driver.Main (System.String[] args) [0x00000] Xlib: connection to ":0.0" refused by server Xlib: No protocol specified (f-spot:7306): Gtk-WARNING **: cannot open display: I am running F-Spot '0.4.0-0ubuntu3' under Xubuntu 7.10 Gutsy Gibbon. I am glad to provide any other information or help that might be useful.
Sorry, the command that I used was 'gksudo', not 'sudo'.
(In reply to comment #0) > Xlib: connection to ":0.0" refused by server > Xlib: No protocol specified > (f-spot:7306): Gtk-WARNING **: cannot open display: I'm not a dbus expert, but this doesn't look like a f-spot problem. Can you run other programs with gksudo? i.e. terminal or something else?
Yes, you're right. I had never tried it before, and I am unable to run ANYTHING with gksudo as another user. (Yes, I've added a line for it in /etc/sudoers .) I am really sorry for posting this uninformed error report here. Thank you very much for your help!