topic title: Problem with ktsuss
Posts: 137
duncan_mk
Joined: 19 Sep 2012
#1
When I press the Synaptic button I get a"Command passed is invalid" message from ktsuss - not a huge problem, I can always launch from the terminal & I've attached a one liner using gksu to a menu I'm building on the toolbar. There's very little about ktsuss on the net except that there is a recently discovered vulnerability.

Is this the cause of the problem?

dmk
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#2
Yes, ktsuss is not as good as I thought it was. It is ok for basic things like editing config files as root, but it does not work properly with synaptic, gparted, where there are big changes made I installing apps, (re)partioning drives.
Posts: 137
duncan_mk
Joined: 19 Sep 2012
#3
Thought so! Thanks.

dmk
Posts: 609
dark-D
Joined: 02 Jun 2008
#4
if you launch it this way it will work. ktsuss /usr/sbin/synaptic
@anticapitalista how so? please explain a little. for me it works with synaptic and gparted launches, but i didn't partitioned in some time.
Alanarchy
Posts 0
Alanarchy
#5
If you try launching synaptic using right-click in Fluxbox you get the message"Invalid Command" but launching from the terminal using the command suggested by dark-D works, or by using"gksu synaptic".
Posts: 96
melodie
Joined: 15 Feb 2008
#6
Hello,

ktsuss works here too, just it has to be given the binary (or right executable) as argument. /usr/bin/synaptic just launches"pkexec /usr/sbin/synaptic" or such, so throwing"ktsuss synaptic" is understood by the system as"ktsuss pkexec /usr/sbin/synaptic" which makes no sense (for the system).

/usr/bin/synaptic is in the path of executables and /usr/sbin/ is not (try"echo $PATH" as root) this is why the full path needs to be provided, either from a user console or from a synaptic.desktop file (in the desktop file a line such as this will be needed:

Code: Select all

Exec=ktsuss /usr/sbin/synaptic
Posts: 75
tradetaxfree
Joined: 18 Jan 2012
#7
I've built a ktsuss deb with:

Code: Select all

./configure
dh_make --createorig
cd debian
debuild -b
&"ktsuss synaptic" &"ktsuss gparted" commands now work.

Zipped Deb attached to this post
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#8
Thanks tradetaxfree.

Could you make a 64bit version as well?
Posts: 75
tradetaxfree
Joined: 18 Jan 2012
#9
I found the reason why ktsuss works on my system (it wasn't the new deb) - in my .bashrc I have:

Code: Select all

export PATH=$PATH:/usr/sbin
Posts: 96
melodie
Joined: 15 Feb 2008
#10
tradetaxfree wrote:I found the reason why ktsuss works on my system (it wasn't the new deb) - in my .bashrc I have:

Code: Select all

export PATH=$PATH:/usr/sbin
He he !

Here in Archlinux, in my gparted.desktop (installed into my $HOME/.local/share/applications directory) I had set this exec line:

Code: Select all

Exec=ktsuss /usr/sbin/gparted
because for unknown reason the original one:

Code: Select all

Exec=gparted-pkexec
was not working (and lazy to find out why, while I knew about a solution).

the file /usr/bin/gparted-pkexec contains:

Code: Select all

#!/bin/sh
pkexec"/usr/sbin/gparted""$@"