Do

Do 0.5 open synaptic in non root mode

Bug #242992 reported by Olivier Guéry
18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Do
Invalid
Wishlist
Unassigned

Bug Description

Hello, I notice that since Gnome-do 0.5 when I launch synaptic with gnome-do I get a warning that I lauch synaptic in non-root mode.
It’s boring since if I launch synaptic… it’s because I do want to do some (un)install task as root.
With gnome-do 0.4 launching synaptic give me the root authentification windows, asking for password and launch the synaptic the right way.

Revision history for this message
David Siegel (djsiegel-deactivatedaccount) wrote : Re: [Bug 242992] [NEW] Do 0.5 open synaptic in non root mode
  • unnamed Edit (117 bytes, text/html; charset=ISO-8859-1)

Interesting. Did you also upgrade your distro between Do 0.4 and 0.5?
Nothing has changed in Do in this respect.

Revision history for this message
Olivier Guéry (nemolivier) wrote :

No. I’m using Hardy Heron since the beta 3. And gnome-do from ppa.
But since the plugin system change a lot I remove all the config file in order to start from a clean config.
Another strange thing is that It don’t seems to propose me « synaptic » in first when i’m typing S-Y-N-A (and I don’t launch the other propositions). Not shure about this. Since I’m using the « System » menu to launch synaptic.
Maybe I did something wrong triing to clean my instalation (if I remember, I remove the $HOME/.config/gome-do and some entries in $HOME/.gconf).

Revision history for this message
penn (pennsuaccount) wrote :

same here. after upgrading to the latest version 0.5 i can't start synaptic in administrator mode, it doesn't pop up the dialog for asking the password anymore. I need to run gnome-do in sudo mode to make it work but I don't think it's safe to run gnome-do as administrator all the time.

Where is the true config file gnome-do uses? no matter how many times I deleted the folders in .config and .local/share respectively, gnome-do will always convert back to my original configuration without the plugins.

Revision history for this message
penn (pennsuaccount) wrote :

nvm I found it, it's in gconf...but synaptics is still the problem.

Revision history for this message
penn (pennsuaccount) wrote :

well, I'm not trying to spam, but removing the gnome-do folder in ~/.gconf doesn't make gnome do reset the config even though I restart gnome-do.

Revision history for this message
Olivier Guéry (nemolivier) wrote : Re: [Bug 242992] Re: Do 0.5 open synaptic in non root mode

2008/6/29 penn <email address hidden>:
> well, I'm not trying to spam, but removing the gnome-do folder in
> ~/.gconf doesn't make gnome do reset the config even though I restart
> gnome-do.
>
> --
> Do 0.5 open synaptic in non root mode
> https://bugs.launchpad.net/bugs/242992
> You received this bug notification because you are a direct subscriber
> of the bug.
>

So, how can we remove everything about do in a config ?
This bug is boring !

Olivier.

--
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
http://nemolivier.blogspot.com

Revision history for this message
Alex Launi (alexlauni) wrote :

What makes you guys think this is a config issue? This sounds like an
environment issue, but if you must know, everything Do knows about lives in
~/.config/gnome-do, ~/.local/share/gnome-do, or in gconf /apps/gnome-do.

Revision history for this message
Olivier Guéry (nemolivier) wrote :

2008/7/8 Alex Launi <email address hidden>:
> What makes you guys think this is a config issue? This sounds like an
> environment issue, but if you must know, everything Do knows about lives in
> ~/.config/gnome-do, ~/.local/share/gnome-do, or in gconf /apps/gnome-do.
>
> --
> Do 0.5 open synaptic in non root mode
> https://bugs.launchpad.net/bugs/242992
> You received this bug notification because you are a direct subscriber
> of the bug.
>

I have a new ubuntu installation on another PC, and no problem with do.

--
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
http://nemolivier.blogspot.com

Revision history for this message
Olivier Guéry (nemolivier) wrote :

2008/7/8 Alex Launi <email address hidden>:
> What makes you guys think this is a config issue? This sounds like an
> environment issue, but if you must know, everything Do knows about lives in
> ~/.config/gnome-do, ~/.local/share/gnome-do, or in gconf /apps/gnome-do.

I kill gnome-do, remove these folders, run gnome-do again, but the bug
is still here, and, when I re-enable the gmail contact plugin, the
login/password are still here… maybe there's an other file ?

Olivier.

--
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
http://nemolivier.blogspot.com

Revision history for this message
Alex Launi (alexlauni) wrote :

There are some passwords stored in Gnome Keyring, this has nothing to do
with Synaptic opening without gksu. Check your Synaptic desktop file for
that one, iirc, the Exec= line should start with gksu.

Revision history for this message
David Siegel (djsiegel-deactivatedaccount) wrote :

I'm pretty sure this is not a Do bug, as synaptic works just fine for me.
Did you edit your synaptic menu entry? Maybe make a new one with the command
"gksudo synaptic".

Revision history for this message
Olivier Guéry (nemolivier) wrote :

2008/7/8 David Siegel <email address hidden>:
> I'm pretty sure this is not a Do bug, as synaptic works just fine for me.
> Did you edit your synaptic menu entry? Maybe make a new one with the command
> "gksudo synaptic".

I only have one entry in my menu : in System > Administration and it
contain « gksu /usr/sbin/synaptic » witch is the right command. Is
gnome-do search elsewhere to find launch possibilities ?

--
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
http://nemolivier.blogspot.com

Revision history for this message
penn (pennsuaccount) wrote :

Same here. I suspect it's Do's misconfiguration because before I upgrade to 0.5, synaptics are always opened with gksu successfully, now 0.5 not even once is triggered with it.

Revision history for this message
David Siegel (djsiegel-deactivatedaccount) wrote :

I suggest using the locate files plugn (or just the locate command) to
discover duplicate desktop files for synaptics:

$ locate synaptics.desktop

Then make sure you only have once desktop file for synaptics.

Revision history for this message
Olivier Guéry (nemolivier) wrote :

2008/7/10 David Siegel <email address hidden>:
> I suggest using the locate files plugn (or just the locate command) to
> discover duplicate desktop files for synaptics:
>
> $ locate synaptics.desktop
>
> Then make sure you only have once desktop file for synaptics.

Not « locate synapticS.desktop » but « locate synaptic.desktop » ;-)
3 results :
/home/nemo/.local/share/applications/synaptic.desktop
/usr/share/app-install/desktop/synaptic.desktop
/usr/share/applications/synaptic.desktop

And the all 3 contain : « Exec=gksu /usr/sbin/synaptic » which is the
good command… Strange !
Is « do » use other files to launch applications ?

Olivier.

--
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
http://nemolivier.blogspot.com

Revision history for this message
David Siegel (djsiegel-deactivatedaccount) wrote :

No, Do uses only those files. Try making a new .desktop file (you can just
place it on your desktop) that does gksu gnome-terminal or something.
Restart Do, and see if it launches with gksu.

David

On Thu, Jul 10, 2008 at 8:47 AM, Olivier Guéry <email address hidden> wrote:

> 2008/7/10 David Siegel <email address hidden>:
> > I suggest using the locate files plugn (or just the locate command) to
> > discover duplicate desktop files for synaptics:
> >
> > $ locate synaptics.desktop
> >
> > Then make sure you only have once desktop file for synaptics.
>
> Not « locate synapticS.desktop » but « locate synaptic.desktop » ;-)
> 3 results :
> /home/nemo/.local/share/applications/synaptic.desktop
> /usr/share/app-install/desktop/synaptic.desktop
> /usr/share/applications/synaptic.desktop
>
> And the all 3 contain : « Exec=gksu /usr/sbin/synaptic » which is the
> good command… Strange !
> Is « do » use other files to launch applications ?
>
> Olivier.
>
> --
> [Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
> http://nemolivier.blogspot.com
>
> --
> Do 0.5 open synaptic in non root mode
> https://bugs.launchpad.net/bugs/242992
> You received this bug notification because you are a member of GNOME Do
> Core Team, which is subscribed to GNOME Do.
>

Revision history for this message
Olivier Guéry (nemolivier) wrote :

2008/7/10 David Siegel <email address hidden>:
> No, Do uses only those files. Try making a new .desktop file (you can just
> place it on your desktop) that does gksu gnome-terminal or something.
> Restart Do, and see if it launches with gksu.

It works. gnome-terminal is launched with gksu. I put the .desktop in
~/.local/share/applications

Better… I create a copy of synaptic.desktop with « Test Do » as name,
but leave « gksu /usr/sbin/synaptic »
It launch synaptic with gksu ! Here is the file…

I also remove all my plugin… with no effect.

Olivier.

--
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
http://nemolivier.blogspot.com

Revision history for this message
Ryan Thompson (rct86) wrote :

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.

Revision history for this message
Olivier Guéry (nemolivier) wrote :

It works !
Thank's. But's it's a dirty hack :D
Gnome-do need to « know » that I run gnome and not kde.

O.

Revision history for this message
David Siegel (djsiegel-deactivatedaccount) wrote :

Why do you have this file (/usr/share/applications/synaptic-kde.desktop) if
you don't use it? GNOME Do can't just let you install whatever programs or
files you want on your computer and "know" which ones you don't actually
want to open.

Revision history for this message
Olivier Guéry (nemolivier) wrote :

2008/7/13 David Siegel <email address hidden>:
> Why do you have this file (/usr/share/applications/synaptic-kde.desktop) if
> you don't use it?

I don't know. I don't even use k3b ou amarok…

--
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
http://nemolivier.blogspot.com

Revision history for this message
idokibovito (idokibovito) wrote :

I just wanted to report this behaviour when I saw this report.
Clean install of Hardy, and yes I have a kde4 (maybe even kde3) installed parallel on the machine. That's what free desktops are about, free choice all the time.
It's not a bug in gnome-do, it just needs some extra tactics for multiple .desktop files for the same application. I'm sure the devs will find a cool solution for this aswell.

Keep up the great work!

Revision history for this message
Ryan Thompson (rct86) wrote :

The problem is that the Synaptic package in Ubuntu has two desktop files pretending to be only one: synaptic.desktop (GNOME only) and synaptic-kde.desktop (KDE only). The only difference is that they use the two different privilege escalation systems of GNOME (gksudo) and KDE (X-KDE-SubstituteUID). Since these two files are pretending to be one, they have the same Name fields, and presumably Do doesn't support duplicate application names (I haven't checked this in the source code). I suppose the workaround in the short term is to support X-KDE-SubstituteUID (using kdesu, perhaps?).

On a related note, honoring the NotShowIn field might also be a good idea.

Revision history for this message
Ryan Thompson (rct86) wrote :

I should note, if you want to make my workaround permanent (i.e. survive package updates) on a Debian-based system (e.g. Ubuntu), try this command, which should tell the package manager to divert the file to its new location:

sudo dpkg-divert --divert /usr/share/applications/synaptic_kde.desktop --local /usr/share/applications/synaptic-kde.desktop

Revision history for this message
Alex Launi (alexlauni) wrote :

This should be fixed, if it's not please let us know.

Changed in do:
importance: Undecided → Low
milestone: none → 0.6.0
status: New → Fix Committed
status: Fix Committed → Fix Released
Revision history for this message
Endolith (endolith) wrote :

In GNOME Do 0.6.1.0, if I try to run Synaptic Package Manager, it does not use gksu. I get the "Starting without administrative privileges" window.

Revision history for this message
Olivier Guéry (nemolivier) wrote :

2008/11/26 Endolith <email address hidden>:
> In GNOME Do 0.6.1.0, if I try to run Synaptic Package Manager, it does
> not use gksu. I get the "Starting without administrative privileges"
> window.
>
> --
> Do 0.5 open synaptic in non root mode
> https://bugs.launchpad.net/bugs/242992
> You received this bug notification because you are a direct subscriber
> of the bug.
>

I don't have this bug anymore.
Endolith, do you have a kde version of synaptic ?

Olivier.

--
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
http://nemolivier.blogspot.com

Revision history for this message
Endolith (endolith) wrote :

No, I use Gnome. I haven't used any previous versions of Gnome Do before.

Revision history for this message
Gijs ter Beek (gijsterbeek) wrote :

Since 0.8.2, this bug has reappeared. Reverting to 0.8.1 solves the problem.
Please re-open this bug.

Revision history for this message
Robert Dyer (psybers) wrote :

If you read up, you will see this is not a bug with Do. The problem is that KDE has a .desktop file for Synaptic that does not use 'gksu'. You can fix it by following the comments above: https://bugs.launchpad.net/do/+bug/242992/comments/18

Revision history for this message
Endolith (endolith) wrote :

So this is actually a bug in Do, which needs to be fixed to correctly handle KDE .desktop files with "X-KDE-SubstituteUID=true"?

Revision history for this message
Robert Dyer (psybers) wrote :

As far as I am concerned, it's a bug with KDE. They are implementing a non-standard attribute for .desktop files. GNOME Do (if you can't guess by the name) is not intended to work with KDE, thus we will not support KDE-only features.

Revision history for this message
Gijs ter Beek (gijsterbeek) wrote :

Hi, I *do* read threads in their entirety before posting. This is a called a bug by one of your developers: From reading the above comments by Alex Launi, who is a Gnome Do developer according to this link: http://do.davebsd.com/wiki/index.php?title=Alex_Launi I assumed that the Gnome Do developer team had concluded this to be a Gnome Do bug (and therefore it was committed to be fixed in 0.6.0).

And of course I *can* guess by the name that Gnome Do is designed for Gnome. But because Gnome Do until this version worked like a charm on KDE (which cannot be said about a lot of other 'gnome specific' programs) I assumed this project was one of the few projects that *did* want to close the KDE-Gnome gap.

Too bad that doesn't seem the case.

So, please change the bug status in to 'not our problem' or something like that, to make your point perfectly clear.

Robert Dyer (psybers)
Changed in do:
status: Fix Released → Invalid
importance: Low → Wishlist
Revision history for this message
Jason Smith (jassmith) wrote :

It's probably reasonable for us to hack around this KDE idiocy... though
I am not sure how we might do this as a launcher really. Ideally
libgnome-desktop would hack around this as ultimately that is what is
doing the launching, not GNOME Do. It might be reasonable to target this
bug at libgnome-desktop...

On Wed, 2009-07-01 at 18:47 +0000, Endolith wrote:
> So this is actually a bug in Do, which needs to be fixed to correctly
> handle KDE .desktop files with "X-KDE-SubstituteUID=true"?
>

Revision history for this message
Gijs ter Beek (gijsterbeek) wrote :

;) It sure is strange behaviour, I'll forward this bug to gnome-desktop.
Thanks.

2009/7/1 Jason Smith <email address hidden>

> It's probably reasonable for us to hack around this KDE idiocy... though
> I am not sure how we might do this as a launcher really. Ideally
> libgnome-desktop would hack around this as ultimately that is what is
> doing the launching, not GNOME Do. It might be reasonable to target this
> bug at libgnome-desktop...
>
> On Wed, 2009-07-01 at 18:47 +0000, Endolith wrote:
> > So this is actually a bug in Do, which needs to be fixed to correctly
> > handle KDE .desktop files with "X-KDE-SubstituteUID=true"?
> >
>
> --
> Do 0.5 open synaptic in non root mode
> https://bugs.launchpad.net/bugs/242992
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
Met vriendelijke groet,
Gijs ter Beek

Revision history for this message
Gijs ter Beek (gijsterbeek) wrote :

Hi , I reported it to gnome-desktop, there it was forwarded to libgksu. Now it's fixed. See:
https://bugs.launchpad.net/ubuntu/+source/libgksu/+bug/394496

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.