Use --desktop option of gksu for admin apps to avoid ugly file pathes in the dialog

Bug #43076 reported by Joel Bryan Juliano
18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gksu (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Binary package hint: ubuntu-desktop

Hello, I have recognized that when I run any admin tasks (e.g Synaptic) I've been prompted by a un-friendly names.

I have made a fix for those,
these should be changed in their .desktop entries in the Exec= field.

-----synaptic.desktop------

Exec=gksu /usr/sbin/synaptic --desktop /usr/share/applications/synaptic.desktop
--message "<span size='x-large'>Enter your password to perform administrative tasks</span>

<b><span foreground='brown'>Synaptic Package Manager</span></b> let's you install, remove and upgrade software packages"

-----gdmsetup.desktop-------

Exec=gksu /usr/sbin/gdmsetup --desktop /usr/share/applications/gdmsetup.desktop --message "<span size='x-large'>Enter your password to perform administrative tasks</span>

<b><span foreground='brown'>Login Window</span></b> let's you configure the login window
(GNOME Display Manager)"

-----language-selector.desktop------
Exec=gksu /usr/bin/gnome-language-selector --desktop /usr/share/applications/language-selector.desktop --message "<span size='x-large'>Enter your password to perform administrative tasks</span>

<b><span foreground='brown'>Language Support</span></b> let's you configure multiple and native support on your system"

-----software-properties.desktop------
Exec=gksu /usr/bin/software-properties --desktop /usr/share/applications/software-properties.desktop --message "<span size='x-large'>Enter your password to perform administrative tasks</span>

<b><span foreground='brown'>Software Properties</span></b> let's you configure software channels and internet updates"

-------update-manager.desktop-------
Exec=gksu /usr/bin/update-manager --desktop /usr/share/applications/update-manager.desktop --message "<span size='x-large'>Enter your password to perform administrative tasks</span>

<b><span foreground='brown'>Software Properties</span></b> let's you show and install available updates"

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

This problem should be fixed now. All tools that call admin tasks use the --desktopfile switch of gksu now to display friendly names and icons.

Please reopen if we missed to switch some of the applications.

Changed in gksu:
assignee: nobody → mvo
status: Unconfirmed → Fix Released
Revision history for this message
Michael Vogt (mvo) wrote :

Hm, reading the report again it seems that you are mostly concerned about the menus, this is not fixed.

Changed in gksu:
status: Fix Released → Confirmed
Revision history for this message
Sebastian Heinlein (glatzor) wrote :

It would be nice if we could patch gnome-panel to use the X-KDE-SubstituteUID tag.

Otherwise the exec statement would get rather long.

Revision history for this message
Sebastian Heinlein (glatzor) wrote :

A list of apps using gksu calls - extracted from the app-install-data.

bum.desktop
disks.desktop
firestarter.desktop
foomatic-gui.desktop
gksu.desktop
gnome-apt.desktop
gparted.desktop
gtkorphan.desktop
language-selector.desktop
ndisgtk.desktop
network.desktop
pysdm.desktop
sabayon.desktop
sbackup.desktop
services.desktop
shares.desktop
software-properties.desktop
srestore.desktop
synaptic.desktop
time.desktop
update-manager.desktop
users.desktop
wifi-radar.desktop
xubuntu-disks.desktop
xubuntu-network.desktop
xubuntu-services.desktop
xubuntu-shares.desktop
xubuntu-time.desktop
xubuntu-users.desktop

Revision history for this message
VF (vfiend) wrote :

For some reason, on Feisty, 'Software Sources' doesn't show an ugly file path when launched from System->Administration yet Synaptic and the other ones seem to.

Revision history for this message
Sebastian Heinlein (glatzor) wrote :

Because I manually added the desktop-file option to the gksu call of software-properties-gtk. :)

Revision history for this message
VF (vfiend) wrote :

Any reason that hasn't been done for the other gksu apps installed by default, then? Probably easier than patching gnome-panel (and then gnome-control-center eventually).

Revision history for this message
Sebastian Heinlein (glatzor) wrote :

I subscribed also seb128 to this bug. Seems to be GNOME desktop task.

Michael Vogt (mvo)
Changed in gksu:
assignee: mvo → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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