Active Topics

 


Reply
Thread Tools
b666m's Avatar
Posts: 1,090 | Thanked: 476 times | Joined on Jan 2010 @ Ingolstadt, Germany
#71
Originally Posted by fatalsaint View Post
As user.. run this in a terminal window:

echo sh /etc/hildon-welcome.d/lalala.sh | sudo gainroot
works.

Code:
Root shell enabled
cd
nof
rn
rr
2.conf
cp
that are all of my debugging-echos

but it doesn't work by calling it via desktop-shortcut?! o.O
 
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#72
Hrmm.. that is strange.

Copy/paste your desktop file here again with the changes.
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 
b666m's Avatar
Posts: 1,090 | Thanked: 476 times | Joined on Jan 2010 @ Ingolstadt, Germany
#73
Code:
[Desktop Entry]
Encoding=UTF-8
Version=0.1
Type=Application
Terminal=true
Name=randomvid
Exec=/bin/busybox sh -c 'echo sh /etc/hildon-welcome.d/lalala.sh | sudo gainroot'
Icon=terminal
#X-Window-Icon=
X-Window-Icon=     
X-HildonDesk-ShowInToolbar=true
X-Osso-Type=application/x-executable
edit: maybe i should delete the "sh -c"!? ^^
 
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#74
Originally Posted by b666m View Post

edit: maybe i should delete the "sh -c"!? ^^
No I think that's needed by the busybox wrapper. Try running the whole command as user from a command window:

/bin/busybox sh -c 'echo sh /etc/hildon-welcome.d/lalala.sh | sudo gainroot'

If that works.. I'd start removing items from the file like X-Osso-Type and Terminal=true..
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 

The Following User Says Thank You to fatalsaint For This Useful Post:
b666m's Avatar
Posts: 1,090 | Thanked: 476 times | Joined on Jan 2010 @ Ingolstadt, Germany
#75
Originally Posted by fatalsaint View Post
/bin/busybox sh -c 'echo sh /etc/hildon-welcome.d/lalala.sh | sudo gainroot'
works.

xterm changes to busybox, executes the script and i'm able to see the echo-outputs.

so i guess... i will remove some lines in the desktop-file. ^^
 
b666m's Avatar
Posts: 1,090 | Thanked: 476 times | Joined on Jan 2010 @ Ingolstadt, Germany
#76
ok... please don't ask me why... but after writing a sms and going back to test the desktop file... it works!
strange... but i'm happy now *g*

ok... not 100%... the terminal pops up, leaves everything black except the top bar and closes after a few seconds...
it would be nice to see the output of my echos too (:
 
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#77
You'd probably have to work osso-xterm into there somewhere instead of using busybox.. not sure how'd you do that without something to test with.

It probably started working because the .desktop file was finally reloaded by Hildon. Maybe it caches them or something.
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 
b666m's Avatar
Posts: 1,090 | Thanked: 476 times | Joined on Jan 2010 @ Ingolstadt, Germany
#78
[QUOTE=fatalsaint;537192]You'd probably have to work osso-xterm into there somewhere instead of using busybox.. not sure how'd you do that without something to test with. [/code]

can't get xterm to work. maybe there is a hack-around too. ^^

It probably started working because the .desktop file was finally reloaded by Hildon. Maybe it caches them or something.
oh... i think the tracker (or something equal) is very aggressive. just after editing the file my cpu-usage goes up. so i think it's scanning the complete hildon-folder right afterwards. (:
 
Posts: 7 | Thanked: 0 times | Joined on Feb 2010
#79
I need to run 2 commands from the desktop file command ala:
'root' and afterwards 'start bluetoothd' in one x-terminal session.
Anyone got an idea on how to do this?
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#80
Originally Posted by borgmountain View Post
I need to run 2 commands from the desktop file command ala:
'root' and afterwards 'start bluetoothd' in one x-terminal session.
Anyone got an idea on how to do this?
Add an sudoers entry (see /etc/sudoers.d for examples) and then 'sudo /sbin/start bluetoothd'.
 
Reply

Tags
odod eht oollol


 
Forum Jump


All times are GMT. The time now is 19:26.