By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.
Bug 1494 - Starting Synaptic from its icon doesn't work
Summary: Starting Synaptic from its icon doesn't work
Status: RESOLVED NOTOURPROBLEM
Alias: None
Product: TDE
Classification: Unclassified
Component: tdebase (show other bugs)
Version: R14.0.0 [Trinity]
Hardware: Other Linux
: P5 blocker
Assignee: Slávek Banko
URL:
Depends on:
Blocks:
 
Reported: 2013-05-05 18:40 CDT by Alex Couture
Modified: 2014-10-11 11:04 CDT (History)
4 users (show)

See Also:
Compiler Version:
TDE Version String:
Application Version:
Application Name:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Couture 2013-05-05 18:40:41 CDT
Hi all!
On Ubuntu 13.04 R14 nightlies, starting Synaptic from its icon in the K menu doesn't work. Normally it should bring up the dialog where I type my super-user password and then start, but it does nothing. The only way to start it is to write sudo synaptic in Konsole.

Thanks!
Comment 1 Timothy Pearson 2013-05-07 02:59:09 CDT
This is likely related to the KDE4 compatibility fix discussed here:
http://trinity-devel.pearsoncomputing.net/?0::11003

I distinctly remember fixing this at one point for R14.0.0. :-)
Comment 2 Alex Couture 2013-05-08 19:40:14 CDT
(In reply to comment #1)
> This is likely related to the KDE4 compatibility fix discussed here:
> http://trinity-devel.pearsoncomputing.net/?0::11003
> 
> I distinctly remember fixing this at one point for R14.0.0. :-)

I have updated my R14 nightlies on May 08, and it still doesn't work...
-Alexandre
Comment 3 Alex Couture 2013-08-12 17:18:13 CDT
(In reply to comment #1)
> This is likely related to the KDE4 compatibility fix discussed here:
> http://trinity-devel.pearsoncomputing.net/?0::11003
> 
> I distinctly remember fixing this at one point for R14.0.0. :-)

The simple trick to make it work is to replace ''synaptic'' in the shortcut by ''tdesu synaptic'', but it should be worked out to avoid getting questions about it.


-Alexandre
Comment 4 Timothy Pearson 2013-08-12 18:04:51 CDT
Raising priority.
Comment 5 Slávek Banko 2013-09-26 19:20:15 CDT
While investigating this bug I found, that is called tdesu with "-c", but with an empty command. With tdesu this leads to prompt for password, but then is nothing happened => command is empty. With tdesudo this leads to 100% CPU load.

The patches 21cc8cea (tdebase) and 0fd2e545 (tdesudo) solves run with an empty command. However, the core of this bug remains uncorrected. For now.


A separate question is whether the official Debian / Ubuntu package tdelibs should be built with enabled WITH_OLD_XDG_STD or not? See comment 1.
Comment 6 Slávek Banko 2013-09-27 10:18:48 CDT
I found the cause of this bug, the patch will finish soon.
Comment 7 Slávek Banko 2013-09-27 22:15:49 CDT
There were two problems:

1) In search for binaries during substitude uid was not searched in sbin paths. Synaptic is in /usr/sbin and therefore could not be found.
2) If the binary is not found, was removed from command, but parameters (if any) were then used instead of the command.

Fixed in GIT hash bb36045b (tdelibs)
Comment 8 Alex Couture 2014-04-08 08:43:24 CDT
Hi all, 

Sorry, but I still have this problem, on Ubuntu Saucy with recent R14 nightly build.

-ALexandre
Comment 9 Alex Couture 2014-08-20 17:53:15 CDT
Hi,

I just saw that the bug has been closed, but I still have it, on Ubuntu 14.04 with recent R14 build.

-Alexandre
Comment 10 Timothy Pearson 2014-08-25 12:31:21 CDT
(In reply to Alex Couture from comment #9)
> Hi,
> 
> I just saw that the bug has been closed, but I still have it, on Ubuntu
> 14.04 with recent R14 build.
> 
> -Alexandre

Confirming here as well.
Comment 11 Timothy Pearson 2014-08-25 12:43:47 CDT
(In reply to Timothy Pearson from comment #10)
> (In reply to Alex Couture from comment #9)
> > Hi,
> > 
> > I just saw that the bug has been closed, but I still have it, on Ubuntu
> > 14.04 with recent R14 build.
> > 
> > -Alexandre
> 
> Confirming here as well.

OK, this is all technically a bug in the synaptic packaging.  The synaptic package in Debian/Ubuntu contains a /usr/share/applications/synaptic-kde.desktop file that provides a KDE-specific command, bypassing the default text-mode pkexec method of gaining root access.

If I copy the /usr/share/applications/synaptic-kde.desktop file to /usr/share/applications/synaptic-tde.desktop and change each "KDE" string to read "TDE", then edit /usr/share/applications/synaptic.desktop and append ";TDE" to the "NotShowIn=" line, synaptic works as expected after logout/login of the running TDE session.

As TDE is an XDG-recognized desktop, and the synaptic package already contains a hack specific to an XDG-recognized desktop, I think we need to file an upstream bug report against Debian to include this basic fix in the official synaptic package.

xfce and other alternative desktops suffer from the same problem; users typically have to edit /usr/share/applications/synaptic.desktop to prepend gksu.

Tim
Comment 12 Alex Couture 2014-08-25 14:13:06 CDT
Hi,

From what I can see, Synaptic is not the kind of program that is updated very often, if not at all, such as rpm Synaptic in PCLinuxOS.

Is there a way to do a special rule for Synaptic? I understand that it is probably not the best or the most elegant way to do it, but if it can make it work without trouble.

-Alexandre
Comment 13 Timothy Pearson 2014-08-25 17:27:29 CDT
(In reply to Alex Couture from comment #12)
> Hi,
> 
> From what I can see, Synaptic is not the kind of program that is updated
> very often, if not at all, such as rpm Synaptic in PCLinuxOS.
> 
> Is there a way to do a special rule for Synaptic? I understand that it is
> probably not the best or the most elegant way to do it, but if it can make
> it work without trouble.
> 
> -Alexandre

I'd rather just add a patched Synaptic version to the TDE PPA if it truly changes this infrequently.  I however do not want to do this until the upstream report is filed.
Comment 14 Timothy Pearson 2014-10-10 15:40:28 CDT
I have reported this bug upstream:
https://bugs.launchpad.net/ubuntu/+source/synaptic/+bug/1379932

I am also working on a synaptic-trinity package for Debian and Ubuntu that should restore functionality without requiring the shipment of a patched synaptic package.
Comment 15 Timothy Pearson 2014-10-10 23:27:35 CDT
(In reply to Timothy Pearson from comment #14)
> I have reported this bug upstream:
> https://bugs.launchpad.net/ubuntu/+source/synaptic/+bug/1379932
> 
> I am also working on a synaptic-trinity package for Debian and Ubuntu that
> should restore functionality without requiring the shipment of a patched
> synaptic package.

I have added a synaptic-trinity package for Debian and Ubuntu; this package merely fixes the desktop files and does not provide any compiled synaptic code (synaptic-trinity depends on synaptic).  This package is installed whenever one of the various TDE metapackages are installed, ensuring most users will never see the problem.

I'm marking this as RESOLVED NOTOURPROBLEM pending resolution of the upstream bug report.
Comment 16 Alex Couture 2014-10-11 05:53:48 CDT
Hi,

I don't know much how the menu content is built when apps are installed, but is it possible that with this kind of solution, the user will see 2 Synaptic menu enties; one that work and one that doesn't? In other words, how does it work to get the non-working Synaptic entry not visible in the menu?

Thank you!
-Alexandre
Comment 17 Timothy Pearson 2014-10-11 11:04:35 CDT
The synaptic-trinity package diverts the original synaptic.desktop file and replaces it with a version that has the correct NotShowIn line to prevent duplicate entries from appearing.  My tests show that it works fine; only one entry appears and using that entry launches Synaptic via tdesu.