| Prev |   8     9   10 |
maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   xterminal "top" shortcut (https://talk.maemo.org/showthread.php?t=35858)

eitama 2010-04-13 10:55

Re: xterminal "top" shortcut
 
1 Attachment(s)
Quote:

Originally Posted by b666m (Post 537189)
ok... please don't ask me why... but after writing a sms and going back to test the desktop file... it works! :D
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.

les_garten 2010-04-13 15:52

Re: xterminal "top" shortcut
 
Quote:

Originally Posted by eitama (Post 608368)
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.

CharlesM 2010-06-12 17:52

Re: xterminal "top" shortcut
 
Was a solution ever found? . . .


Quote:

Originally Posted by DaSilva (Post 452333)
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


lolloo 2011-01-17 11:13

Re: xterminal "top" shortcut
 
how can I add java app shortcut

like this app
http://talk.maemo.org/showthread.php?t=48722

Necrofenser 2011-08-19 10:36

Re: xterminal "top" shortcut
 
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?

ziggadebo 2011-10-04 11:10

Re: xterminal "top" shortcut
 
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.

ziggadebo 2011-10-04 12:39

Re: xterminal "top" shortcut
 
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 :D

asktoby 2011-11-03 21:53

Re: xterminal "top" shortcut
 
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



| Prev |   8     9   10 |
All times are GMT. The time now is 11:34.

vBulletin® Version 3.8.8