After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 512237 - f-spot can't be run as other user with sudo
f-spot can't be run as other user with sudo
Status: RESOLVED INVALID
Product: f-spot
Classification: Other
Component: General
0.4.x
Other All
: Normal enhancement
: ---
Assigned To: F-spot maintainers
F-spot maintainers
Depends on:
Blocks:
 
 
Reported: 2008-01-26 14:26 UTC by Jerzy Jalocha N
Modified: 2008-02-02 23:12 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jerzy Jalocha N 2008-01-26 14:26:55 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.
Comment 1 Jerzy Jalocha N 2008-01-26 14:35:15 UTC
Sorry, the command that I used was 'gksudo', not 'sudo'.
Comment 2 Maxxer 2008-01-29 07:42:40 UTC
(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?
Comment 3 Jerzy Jalocha N 2008-02-02 23:12:44 UTC
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!