profile-image

rpabel

Roland Pabel , Germany

On/Off Switch

Plasma 4 Widgets Dec 05 2009
Score 69%
69 Likes
31 Dislikes
On/Off Switch

Plasma 4 Widgets 18 comments

Score 69%
69 Likes
31 Dislikes
Dec 05 2009
I am still using KDE4. Don't know when I'll start using 5... - May 21 2015
I'm all for different styles, but I'm not an artist (anything I would design with Inkscape would look truly hideous). But, of course, I'd accept contributions any time...
I looked at the Plasma::Svg class again, I don't think there is any way to change the color through the class interface. I really like the idea, but I don't see how to realize yet... - Dec 05 2009
Thanks for the idea with the tooltip, I had planned to give the switch a name, but wasn't sure how to display it. I'll upload the new version in a minute. - Dec 05 2009
yeah, that is probably the best way to do it, kdesudo should pop up a window and ask for you password.
I never thought to execute interactive programs with the switch, I only thought of silently executing programs. If you really need to start something with input/output or a GUI, a desktop shortcut is probably the first choice...
Alternatively, configure sudo to work without inputing your password, then it could also work with sudo... - Dec 04 2009
So it works for you if you put the command in quotation marks?
I don't really know what the best way to execute a generic command from a plasmoid is, so my first guess was to call something else. Right now, I take the string and call KRun::runCommand() . I don't really know what you can feed this method and I don't really see why quotation marks make any difference. I wanted to improve the widget over the weekend, I will also look into your issue then. - Dec 03 2009
Thanks for the positive feedback.
I developed and tested it on OpenSuSE 11.2, good to know it not only works-for-me(tm) - Nov 29 2009