maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [Help] Creating shortcuts (https://talk.maemo.org/showthread.php?t=75908)

Necrofenser 2011-08-19 21:24

[Help] Creating shortcuts
 
Please I need help in creating shortcuts! I was reading all threads about creating shortcuts, but none of them work, so please help me.

I want to make shortcut for Kismet. In order to launch it i need to enter kismet in X Terminal with root privileges. So code looks like something like this
Code:

sudo gainroot
kismet

I created two files in order to make this shortcut:

kismet.desktop
Code:

[Desktop Entry]
Encoding=UTF-8
Version=0.1
Type=Application
Terminal=true
Name=Kismet
Exec=/bin/busybox sh -c 'echo sh /home/user/skripte/kismet.sh | sudo gainroot 
Icon=kismet 
X-Window-Icon= kismet   
X-HildonDesk-ShowInToolbar=true
X-Osso-Type=application/x-executable

kismet.sh
Code:

#!/bin/sh
(
/usr/bin/osso-xterm 'sudo gainroot'
/usr/bin/osso-xterm 'kismet' &
)

I created 48x48 icon and moved it to /usr/share/icons/hicolor/48x48/hildon/
And I also moved desktop file to /usr/share/applications/hildon/

But I can't see my shortcut... What am I doing wrong?


All times are GMT. The time now is 15:37.

vBulletin® Version 3.8.8