Thread
:
[Solved]dbus-send --type=method_call --dest=org.freedesktop.Notifications - problem with root privileges
View Single Post
Estel
2011-08-25 , 00:13
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#
5
Thank You
MohammadAG
, obviously, it works like a charm now!
I must write this - it keeps me amazed how knowledgeable and competitive some people here are. Really, no sugar-coating - I could probably search for this +- forever without *any* success, and You MohammadAG "just" throw answer out of Your head.
---
Anyway, possibly last question on this topic - I like to learn when I've a chance - is there a way to run sh script with "sudo" via .desktop shortcut
*without*
terminal window flashing (turning on and closing after executing)?
I know, this one is probably simple newbie thing, but I've searched many threads about shortcut making on forum (not to mention wiki), and while .sh scripts that doesn't need root privileges run just fine without terminal, when invoked via "Exec=" in .desktop, the best thing I could achieve to run root things was to
Code:
Exec=/usr/bin/osso-xterm 'sudo bnf'
... which, obviously, flash terminal window, not to mention throwing us into dashboard (and outside any fullscreen program), if we're multitasking.
Every attempts with "bnf.sh | sudo gainroot", busybox sh -c 'usr/bin/bnf.sh | sudo gainroot' etc., failed miserably.
Thanks in advance for help, and really, enormous thanks for last one, I'm really impressed.
// Edit
Also thanks
Karam
, although I really would not like to open system for everything, just for this little script
Nevertheless, thanks for trying to help.
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover
MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1
|
ereswap
|
bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
Last edited by Estel; 2011-08-25 at
00:18
.
Quote & Reply
|
The Following User Says Thank You to Estel For This Useful Post:
MohammadAG
Estel
View Public Profile
Send a private message to Estel
Find all posts by Estel