Use a more "Descriptive" message with gksudo

Bug #252185 reported by Emilio
2
Affects Status Importance Assigned to Milestone
Gufw
Fix Released
Wishlist
costales

Bug Description

Currently, when running Gufw, gksudo asks for your password, but in the message it shows "python <path to Gufw>", and that isn't likely to be "informative". You could use --set-message on gksudo to show something like Gufw or something better I think.

Revision history for this message
costales (costales) wrote :

Hi. Standard applications as "Gnome parted" or "Login Window" not show a descriptive message.
I don't know if we can do and how.
Thanks!

Changed in gui-ufw:
importance: Undecided → Wishlist
status: New → Won't Fix
Revision history for this message
Emilio (turl) wrote :

See Synaptic for an example. You can do it by using --set-message on gksudo.

Revision history for this message
Emilio (turl) wrote :

Sorry, Synaptic doesn't use it :P

if you read "man gksudo" you'll see --description which I think is what you need. You can use it like this:

gksudo --preserve-env --description /path/to/gufw/file.desktop python /path/to/gufw.py

Revision history for this message
Vadim Peretokin (vperetokin) wrote : Re: [Bug 252185] Re: Use a more "Descriptive" message with gksudo

We should be using a descriptive language, yes. It's not necessary, but it
helps.

How about this string:

"Gufw lets you change the firewall settings, which requires an
administrative password."

How would that look?

Revision history for this message
Emilio (turl) wrote :

I'd rather use simple --description instead of --message. Try this and see how it looks:

gksudo --preserve-env --description /path/to/desktop/file.desktop /usr/share/gufw/gufw.py

It should do the trick and if you translate the .desktop file the message will change according to the language. Remember to change the .desktop file path! (I don't really know where they are)

costales (costales)
Changed in gui-ufw:
assignee: nobody → marquinos
status: Won't Fix → Confirmed
Revision history for this message
costales (costales) wrote :

Hi!
If I use
Exec=gksudo --preserve-env --description Gufw /usr/share/gufw/gufw.py
Works!

But with:
Exec=gksudo --preserve-env --description /usr/share/applications/Gufw.desktop Gufw /usr/share/gufw/gufw.py
Not works :S

Revision history for this message
Emilio (turl) wrote :

I looked at the deb and found Gufw icon is situated at /usr/share/applications/alacarte-made-12.3.desktop

So if you use:

Exec=gksudo --preserve-env --description /usr/share/applications/alacarte-made-12.3.desktop /usr/share/gufw/gufw.py

It works!

Revision history for this message
Emilio (turl) wrote :

Sorry, with icon I meant ".desktop file"

Revision history for this message
macro182 (macro182-gmail) wrote :

Hi!
First of all I want to compliment with you for the good job that you're
doing.

But I've a problem whit bug's notification, because I've mistaked
subscriving in order to receive only news about updates.
So now I want to delete my subscription to notification, but I'm not able.
Can you tell me how can I do this?

Ciao!

2008/7/27 Emilio López <email address hidden>

> I looked at the deb and found Gufw icon is situated at
> /usr/share/applications/alacarte-made-12.3.desktop
>
> So if you use:
>
> Exec=gksudo --preserve-env --description /usr/share/applications
> /alacarte-made-12.3.desktop /usr/share/gufw/gufw.py
>
> It works!
>
> --
> Use a more "Descriptive" message with gksudo
> https://bugs.launchpad.net/bugs/252185
> You received this bug notification because you are subscribed to Gufw.
>
> Status in GUI for ufw: Confirmed
>
> Bug description:
> Currently, when running Gufw, gksudo asks for your password, but in the
> message it shows "python <path to Gufw>", and that isn't likely to be
> "informative". You could use --set-message on gksudo to show something like
> Gufw or something better I think.
>

Revision history for this message
Emilio (turl) wrote :

Maybe you'll find the "Unsubscribe" button on the bug page useful?

Revision history for this message
macro182 (macro182-gmail) wrote :

The problem is that I already unsubscrive, but I appear at the same time in
"also notified" list.

2008/7/27 Emilio López <email address hidden>

> Maybe you'll find the "Unsubscribe" button on the bug page useful?
>
> --
> Use a more "Descriptive" message with gksudo
> https://bugs.launchpad.net/bugs/252185
> You received this bug notification because you are subscribed to Gufw.
>
> Status in GUI for ufw: Confirmed
>
> Bug description:
> Currently, when running Gufw, gksudo asks for your password, but in the
> message it shows "python <path to Gufw>", and that isn't likely to be
> "informative". You could use --set-message on gksudo to show something like
> Gufw or something better I think.
>

Revision history for this message
costales (costales) wrote :

Works ;) Thanks Emilio!
An instance of bug 252170, this bug is fixed.

Changed in gui-ufw:
status: Confirmed → Fix Committed
costales (costales)
Changed in gui-ufw:
status: Fix Committed → Fix Released
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.