From: Tony H. <h...@re...> - 2007-03-24 15:30:38
|
One of the things that Ubuntu does, which seems to be held as a Good Thing - so might catch on in other distros - is to not have a root password. Instead, root access is gained through sudo. That means ROX-Lib's su module doesn't work on Ubuntu and in turn you can't install ROX-Session for *dm. So please could it be updated to work with sudo. I think the best way would be for it to ask the user which method to use when first run and save it in $XDG.../ROX-Lib2 so that any app using the su module doesn't have to ask again. -- TH * http://www.realh.co.uk |
From: Tony H. <h...@re...> - 2007-03-24 16:17:28
|
In <200...@re...>, Tony Houghton wrote: > One of the things that Ubuntu does, which seems to be held as a Good > Thing - so might catch on in other distros - is to not have a root > password. Instead, root access is gained through sudo. > > That means ROX-Lib's su module doesn't work on Ubuntu and in turn you > can't install ROX-Session for *dm. So please could it be updated to work > with sudo. I think the best way would be for it to ask the user which > method to use when first run and save it in $XDG.../ROX-Lib2 so that any > app using the su module doesn't have to ask again. And could it perhaps use gksu/gksudo, which should look a lot better than using a terminal? I suppose it could still fall back on a terminal if gksu* aren't available. -- TH * http://www.realh.co.uk |
From: Lars H. <lar...@un...> - 2007-03-28 02:49:03
|
Tony Houghton wrote: > And could it perhaps use gksu/gksudo, which should look a lot better > than using a terminal? I suppose it could still fall back on a terminal > if gksu* aren't available. sudo can get the password from stdin using the -S switch (at least on OpenBSD) so there's no need for gksu/gksudo (neither available on OpenBSD). --- Lars Hansson |
From: David A. <da...@ko...> - 2007-03-28 17:15:35
|
Tony Houghton wrote: > In <460...@un...>, Lars Hansson wrote: > > >> Tony Houghton wrote: >> >>> And could it perhaps use gksu/gksudo, which should look a lot better >>> than using a terminal? I suppose it could still fall back on a terminal >>> if gksu* aren't available. >>> >> sudo can get the password from stdin using the -S switch (at least on >> OpenBSD) so there's no need for gksu/gksudo (neither available on OpenBSD). >> > > OK; I just thought gksu* would look "prettier" but if there are > compatibility reasons against them, that's more important. > > Then how about using a text input zenity window (can't find the switch, not on a linux machine atm) and passing the password to sudo via stdin? It's probably possible to get it looking very like gksudo using this method. Just using gksudo (or the above) really does look more polished than using an xterm. Dave |
From: Lars H. <lar...@un...> - 2007-03-29 03:19:35
|
David Arthur wrote: > Then how about using a text input zenity window (can't find the switch, > not on a linux machine atm) and passing the password to sudo via stdin? Then it would depend on zenity, which depends on a lot of gnome stuff. How about use gksu* if they're available but use a builtin ROX prompt if they're not? --- Lars Hansson |
From: Tony H. <h...@re...> - 2007-03-28 16:14:23
|
In <460...@un...>, Lars Hansson wrote: > Tony Houghton wrote: > > And could it perhaps use gksu/gksudo, which should look a lot better > > than using a terminal? I suppose it could still fall back on a terminal > > if gksu* aren't available. > > sudo can get the password from stdin using the -S switch (at least on > OpenBSD) so there's no need for gksu/gksudo (neither available on OpenBSD). OK; I just thought gksu* would look "prettier" but if there are compatibility reasons against them, that's more important. -- TH * http://www.realh.co.uk |
From: Jim R. <i....@ji...> - 2007-03-28 17:45:16
Attachments:
signature.asc
|
David Arthur wrote: > Then how about using a text input zenity window (can't find the > switch, not on a linux machine atm) and passing the password to sudo > via stdin? It's probably possible to get it looking very like gksudo > using this method. Just using gksudo (or the above) really does look > more polished than using an xterm. zenity --entry --text "Password" --hide-text But since this is all in rox-lib2 anyway (where we have access to pygtk), it should be fairly trivial to write our own text entry dialog without having to rely on an external ap (zenity/xterm/xmessage/gksu) at all. That said, one thing gksu/do does nicely is it uses a full-screen window so you don't accidentally type your password into your IRC window - I'm not sure how easy that would be to replicate with pygtk. --=20 Jim Ramsay "Me fail English? That's unpossible!" |