Reply
Thread Tools
eitama's Avatar
Posts: 702 | Thanked: 334 times | Joined on Feb 2010 @ Israel.
#91
Originally Posted by b666m View Post
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 (:
On Topic:

I know this thread is kinda dead (;
but I gotta give back, after receiving so much from it.

The solution mentioned here works.
Using /bin/busybox sh -c 'echo sh /etc/hildon-welcome.d/lalala.sh | sudo gainroot' works.
But, you need the desktop to refresh, for the icon to be up to date,
I have a script killing my desktop which I wrote some time ago ( on intention ) for cases when it gets stuck, I just used it - and it refreshed and everything works.
Another way is to just reboot the phone.

Thanks for all the info guys.
Now I have 2 icons on my desktop, "OC 600 MHz" and "OC 900 MHz" which I can just press and toggle to the wanted OC.

Off Topic:

If anyone wants them, they are for the titan ulv kernel,
attached below with icons. (inside zip file).

Instructions :
To get 2 icons for the desired overclocks download the attached files, and put them in the right locations :
1. Icon files should be in ./usr/share/icons/hicolor/64x64/hildon/
2. .desktop file should be in /usr/share/applications/hildon
3. .sh files should be in /usr/share (this is where I put them, as they are small and I don't care about the size they take.
4. You must have rootsh installed.
5. Don't forget to "chmod 777 <filename>" the .sh files.
Attached Files
File Type: zip OC-ShotcutsAndIcons.zip (34.1 KB, 142 views)
__________________
| Developer of Horizontal-Call - Call your contacts, fast! |
| Reverse SSH - access your N900 from anywhere, anytime |
| Using Samsung Galaxy S GT-i9000 and Nokia N900 |
| DonateMe - If you feel I helped you in a very good way, feel free to donate |
 
Posts: 1,283 | Thanked: 370 times | Joined on Sep 2009 @ South Florida
#92
Originally Posted by eitama View Post
On Topic:

I know this thread is kinda dead (;
but I gotta give back, after receiving so much from it.

The solution mentioned here works.
Using /bin/busybox sh -c 'echo sh /etc/hildon-welcome.d/lalala.sh | sudo gainroot' works.
But, you need the desktop to refresh, for the icon to be up to date,
I have a script killing my desktop which I wrote some time ago ( on intention ) for cases when it gets stuck, I just used it - and it refreshed and everything works.
Another way is to just reboot the phone.

Thanks for all the info guys.
Now I have 2 icons on my desktop, "OC 600 MHz" and "OC 900 MHz" which I can just press and toggle to the wanted OC.

Off Topic:

If anyone wants them, they are for the titan ulv kernel,
attached below with icons. (inside zip file).

Instructions :
To get 2 icons for the desired overclocks download the attached files, and put them in the right locations :
1. Icon files should be in ./usr/share/icons/hicolor/64x64/hildon/
2. .desktop file should be in /usr/share/applications/hildon
3. .sh files should be in /usr/share (this is where I put them, as they are small and I don't care about the size they take.
4. You must have rootsh installed.
5. Don't forget to "chmod 777 <filename>" the .sh files.
I didn't read all the massive OC tbread. I have a few questions. Do the OC scripts lock the clock rate and there is no scaling of the processor speed? Or do they allow the processor speed to scale higher?

Also, you may want to put a copy of the install instructions in the zip file.
 
Posts: 44 | Thanked: 11 times | Joined on Oct 2009 @ UK, Manchester
#93
Was a solution ever found? . . .


Originally Posted by DaSilva View Post
Is it possible to just execute a shell script but without opening the terminal?
I have a simple toggle script which should just be executed and not shown and currently I always get a black window with a loading animation which is annoying and not necessary.
The desktop file looks like this:

Code:
[Desktop Entry]
Encoding=UTF-8
Version=0.1
Name=FMTX Toggle
Terminal=false
Type=Application
Comment=FMTX Toggle
Exec=/home/user/apps/fmtransmtoggle.sh
Icon=terminal
#X-Window-Icon=timerwidget
X-Window-Icon=     
X-HildonDesk-ShowInToolbar=false
X-Osso-Type=application/x-executable
and the script like this:

Code:
#!/bin/sh
fmtx_client|grep disabled > /dev/null
if [ $? -eq 0 ]; then
   fmtx_client -p 1 > /dev/null
   fmtx_client -f 106900 > /dev/null
   fmtx_client -s "N900    " > /dev/null
   fmtx_client -t "My N900 radio channel" > /dev/null
   echo 118 > /sys/class/i2c-adapter/i2c-2/2-0063/power_level
   echo "RF Enabled @106.90 with power `cat /sys/class/i2c-adapter/i2c-2/2-0063/power_level`"
else
   fmtx_client -p 0
   echo "RF Disabled"
fi
exit 0
Is it also possible to have only a shortcut on the desktop but not in the menu?

Thanks
 
Posts: 330 | Thanked: 97 times | Joined on Dec 2010 @ saudi arabia
#94
how can I add java app shortcut

like this app
http://talk.maemo.org/showthread.php?t=48722
 
Posts: 47 | Thanked: 12 times | Joined on Jun 2011
#95
I want to make shortcut for Kismet, and this is that i created:

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' &
)
NOTE: Kismet needs to be run in terminal as root

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?
 
Posts: 99 | Thanked: 36 times | Joined on Mar 2010
#96
Sorry not answering Necrofenser's query, but I have one of my own.

Following the instructions on this thread I sucessfully created a desktop app to run top in xterm.

However I'm unable to get the icon to change, I followed the instructions. put my png file in the location specified, but the icon will not change.

Would me having CSSU installed be stopping this? I've also tried putting the icon into the scable/hildon directory but this also didn't work.

Can anyone shed any light on this or provide me with avenues to pursue in order to get this working.

Ta.
 
Posts: 99 | Thanked: 36 times | Joined on Mar 2010
#97
Big Thanks to Estel as I've found the solution on another thread from his/her post(I've thanked you in that post!)

Basically in my desktop file I had

Icon=topx

Which I've changed to

Icon=/usr/share/icons/hicolor/48x48/hildon/topx.png

All now working
 

The Following User Says Thank You to ziggadebo For This Useful Post:
Posts: 12 | Thanked: 1 time | Joined on Sep 2011
#98
Took me an age to work out how to have a desktop icon on my n900 to automatically open a terminal, ssh into another box, and re-connect to a screen session.

Finally cracked it, after all sorts of disappearing terminal windows and "TERM environment variable not set" errors.

I now have a file in /usr/share/applications/hildon as follows:
Code:
[Desktop Entry]
Encoding=UTF-8
Version=0.1
Type=Application
Terminal=true
Name=topx 
Exec=/usr/bin/osso-xterm -e "ssh toby@192.168.0.23 -p 443 -t 'screen -dR'"
Icon=     
#X-Window-Icon=timerwidget
X-Window-Icon=     
X-HildonDesk-ShowInToolbar=true
X-Osso-Type=application/x-executable
 

The Following User Says Thank You to asktoby For This Useful Post:
Reply

Tags
odod eht oollol


 
Forum Jump


All times are GMT. The time now is 20:51.