Not runs in Kubuntu 8.10

Bug #273712 reported by costales
2
Affects Status Importance Assigned to Milestone
Gufw
Fix Released
High
costales

Bug Description

Hi!
In Kubuntu 8.10, Gufw not runs because "gksudo" not exists.
Best regards!
Marcos

costales (costales)
Changed in gui-ufw:
assignee: nobody → d.filoni
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Devid Antonio Filoni (d.filoni) wrote :

Marcos, to fix this you should put in your gufw file the following code (adjusted):

if [ -e /usr/bin/gksudo ]; then
 gksudo python ...
else
 if [ -e /usr/bin/kdesudo ]; then
  kdesudo python ...
 else
  sudo python ...
 fi
fi

Also can you please drop [Encoding] from your desktop file?

Revision history for this message
costales (costales) wrote : Re: [Bug 273712] Re: Not runs in Kubuntu 8.10

I was thinking in this:
#!/bin/bash
#This script checks if the window manager uses gksudo or kdesudo
gnome=`which gksudo`
kde=`which kdesudo`

#Run command
if [ -n "$gnome" ]; then
    echo "Gnome!"
elif [ -n "$kde" ]; then
    echo "KDE!"
else
    echo "OTHER!"
fi

On Wed, Sep 24, 2008 at 3:09 PM, Devid Antonio Filoni <
<email address hidden>> wrote:

> Marcos, to fix this you should put in your gufw file the following code
> (adjusted):
>
> if [ -e /usr/bin/gksudo ]; then
> gksudo python ...
> else
> if [ -e /usr/bin/kdesudo ]; then
> kdesudo python ...
> else
> sudo python ...
> fi
> fi
>
> Also can you please drop [Encoding] from your desktop file?
>
> --
> Not runs in Kubuntu 8.10
> https://bugs.launchpad.net/bugs/273712
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
costales (costales) wrote :

I was thinking in this:

#!/bin/bash
#This script checks if the window manager uses gksudo or kdesudo
gnome=`which gksudo`
kde=`which kdesudo`

#Run command
if [ -n "$gnome" ]; then
 echo "Gnome!"
elif [ -n "$kde" ]; then
 echo "KDE!"
else
 echo "OTHER!"
fi

Revision history for this message
costales (costales) wrote :

Hi!
I added a gksu dependence in .deb.
It's the only solution that I found :(
I was trying with this script:
#!/bin/bash
#This script checks if the window manager uses gksudo or kdesudo
gnome=`which 2gksudo`

#Run command
if [ -n "$gnome" ]; then
 if [ "$1" == "--quiet" ]; then
  gksudo --preserve-env --description /usr/share/applications/gufw.desktop "/usr/share/gufw/gufw.py --quiet"
 else
  gksudo --preserve-env --description /usr/share/applications/gufw.desktop /usr/share/gufw/gufw.py
 fi
else
 if [ "$1" == "--quiet" ]; then
  sudo python /usr/share/gufw/gufw.py --quiet
 else
  sudo python /usr/share/gufw/gufw.py
 fi
fi

but not start with hide window (it's important for the code).
If someone solved it, please send me email, in other way, I put as fixed :$

Changed in gui-ufw:
assignee: d.filoni → marcos.alvarez.costales
status: Confirmed → Fix Released
costales (costales)
description: updated
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.