Public bug reported:

I've opened this bug here since it was suggested by Gnome Do developers in this 
Gnome Do bug: 
https://bugs.launchpad.net/do/+bug/242992

Short description: 
When starting Synaptic from Gnome Do, it doesn't use gksu (or kdesudo, fwiw) to 
start it as root. Though it did so in the previous Gnome Do version, this seems 
to be caused by libgnome-desktop, for that library is used to do the actual 
launching. 

Long description:
<quote from the bug report mentioned above>
I think I found the problem:

$ locate synaptic | grep desk
...
/usr/share/applications/synaptic-kde.desktop
/usr/share/applications/synaptic.desktop
...

$ cat /usr/share/applications/synaptic-kde.desktop
Name=Synaptic Package Manager
...
Exec=synaptic
...
X-KDE-SubstituteUID=true
...

synaptic-kde.desktop has the same "Name" field as the regular
synaptic.desktop, so I guess it clobbers it in the serach results. KDE
has a different "su" mechanism that doesn't involve the Exec field, so
any non-KDE-aware application that simply reads the "Exec" line will not
know to run the program as root.

Here's the basis for a cheap workaround: whichever of the two desktop
entries sorts lexicographically higher takes precedence. As it is, a
dash sorts higher than a period, so synaptic-kde.desktop beats
synaptic.desktop. Simply change the dash to an underscore, and
synaptic.desktop beats synaptic_kde.desktop, and balance and order will
be restored to the universe (at least until the next update of the
synaptic package clobbers the change).

$ mv /usr/share/applications/synaptic-kde.desktop
/usr/share/applications/synaptic_kde.desktop

I suppose the real fix would be to support the "X-KDE-SubstituteUID"
field, though I'm not sure how to do that.

</quote>

I use
Kubuntu 9.04
gnome-desktop-2-11 version 1:2.26.1-0ubuntu2

** Affects: gnome-desktop (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Synaptic doesn't start in root mode
https://bugs.launchpad.net/bugs/394496
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to