Necoro’s Blog

Blog? Blog? There is no blog…

ktsuss – Graphical su

leave a comment »

Portage needs (in most cases) root-access to install packages. That’s why Portato needs them too ;).  But Portato is a GUI, thus it can be expected, that it is not launched via commandline – so the user normally does not su manually. So we need a graphical application, which deals with this part. Portato supported kdesu and gksu. Unfortunately both have quite a bunch of dependencies — which made some users worry.

But yesterday while having a look at wicd, that has the same kind of problem, I noticed a third application: ktsuss. The only dependencies here: glib and gtk. Yeah! – Looks like a good choice. It is not as shiny as the other two … but hell, it’s only task is to take your root pwd ..

As of revision 383, this is now also supported by Portato. (Of course – as always – this was not as easy as thought, as ktsuss parses the commandline differently. But well – shit happens).

And while taking this “feature” of wicd, I also switched to determining the correct app at runtime (as wicd does too). This is one step towards the goal of getting rid of the ‘sed’-stuff in the ebuild … :)

Advertisements

Written by Necoro

March 19, 2009 at 23:04

Posted in Portato

Tagged with , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: