| Prev |   1     2   3   4     5   | Next | Last
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)

timwatt 2009-12-11 08:56

Re: xterminal "top" shortcut
 
thanks naabi,
when I say for dummies i mean it. I have created an icon file:
Code:

[Desktop Entry]
Encoding=UTF-8
Version=0.1
Name=SSH
Terminal=true
Type=Application
Comment=SSH Login
Exec=/usr/bin/osso-xterm
Icon=terminal
#X-Window-Icon=timerwidget
X-Window-Icon=   
X-HildonDesk-ShowInToolbar=true
X-Osso-Type=application/x-executable

in "/usr/share/applications/hildon/" folder i now want it to run this command:
Code:

ssh -l root -L 3389:192.111.1.1:3389 222.222.222.222 -p 22
what should my *.desktop file look like to run this command?

timwatt 2009-12-11 17:52

Re: xterminal "top" shortcut
 
anyone know how to do the above?

mikec 2009-12-11 18:08

Re: xterminal "top" shortcut
 
Try
osso-xterm -e ssh -l root -L 3389:192.111.1.1:3389 222.222.222.222 -p 22

juhar 2009-12-11 18:11

Re: xterminal "top" shortcut
 
Exec=/usr/bin/osso-xterm 'ssh -l root -L 3389:192.111.1.1:3389 222.222.222.222 -p 22'

That should work

timwatt 2009-12-11 18:23

Re: xterminal "top" shortcut
 
Thanks Juhar that works great I am loving Linux.

so now: after running SSH command is it potable to run another command from teh same file?
like launching rDesktop?
Code:

rdesktop-cli -f -u username -p password host
thanks,
Tim

archebyte 2009-12-11 19:05

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

Originally Posted by timwatt (Post 422229)
slightly off topic, but it looks like the expertises exist here.
I want to run a command in xTerminal (ssh) i would like to create an icon on my desktop.

Please explain how to make a desktop icon to run a xTerminal command for dummy?
thanks Tim (ps I used "personal menu" on my n810 to do this)

An easy way to add an icon to a shortcut for let say, my post above, would be first to find/create a PNG image of dimension 48x48. google this. save file to /usr/share/icons/hicolor/48x48/hildon/

Modify the .desktop file to include the following line. The right side should be the name of file without the .png. (the name of my file was topx.png)
Code:

Icon=topx
Save the file and reboot to see the icon for the shortcut.

my topx.desktop shortcut-with-icon for 'top' looks like this:
Code:

[Desktop Entry]
Encoding=UTF-8
Version=0.1
Type=Application
Terminal=true
Name=topx
Exec=/usr/bin/osso-xterm top
Icon=topx
X-Osso-Type=application/x-executable

HTH

go1dfish 2009-12-11 19:21

Re: xterminal "top" shortcut
 
Quote:

Originally Posted by kwotski (Post 412410)
For anyone as puzzled as I was by this, I think Andre is really talking about a different file... or maybe.

At least on my phone, I discovered the following commented-out stanza:

Code:

<!--
 <menuitem priority="20" name="Reboot">
  <return>6</return>
  <po>osso-powerup-shutdown</po>
 </menuitem>
 <menuitem priority="10" name="Soft poweroff">
  <return>7</return>
  <po>osso-powerup-shutdown</po>
 </menuitem>
 <menuitem priority="5" name="Top in XTerm">
  <callback service="com.nokia.xterm" path="/com/nokia/xterm" interface="com.nokia.xter
  <argument type="string">/usr/bin/top</argument>
  </callback>
 </menuitem>
-->

in /etc/systemui/systemui.xml while poking around.

Edit: on a whim I uncommented it (removing the <!-- and --> lines) and it seems to work fine.

Thanks I was confused by this as well.

I changed the systemui.xml config but see no change yet, I suppose a reboot is in order?

les_garten 2009-12-11 19:21

Re: xterminal "top" shortcut
 
Quote:

Originally Posted by archebyte (Post 423380)
An easy way to add an icon to a shortcut for let say, my post above, would be first to find/create a PNG image of dimension 48x48. google this. save file to /usr/share/icons/hicolor/48x48/hildon/

Modify the .desktop file to include the following line. The right side should be the name of file without the .png. (the name of my file was topx.png)
Code:

Icon=topx
Save the file and reboot to see the icon for the shortcut.

my topx.desktop shortcut-with-icon for 'top' looks like this:
Code:

[Desktop Entry]
Encoding=UTF-8
Version=0.1
Type=Application
Terminal=true
Name=topx
Exec=/usr/bin/osso-xterm top
Icon=topx
X-Osso-Type=application/x-executable

HTH

Glad you brought this up. I have a question about how the icon file is associated. I used a 26x26 file I made for a desktop shortcut. Would yours have worked if you had used a 26x26? I'm wondering about paths and icon directories and how they work. Also, my 26x26 works great for the shortcut but does not show up like yours does here in the main app menu. I just get a generic icon there??

There are a lot of icon directories in diff sizes and I'm trying to understand them.

juhar 2009-12-11 19:27

Re: xterminal "top" shortcut
 
Quote:

Originally Posted by les_garten (Post 423405)
Glad you brought this up. I have a question about how the icon file is associated. I used a 26x26 file I made for a desktop shortcut. Would yours have worked if you had used a 26x26? I'm wondering about paths and icon directories and how they work. Also, my 26x26 works great for the shortcut but does not show up like yours does here in the main app menu. I just get a generic icon there??

There are a lot of icon directories in diff sizes and I'm trying to understand them.

I think if you put your icon to /usr/share/icons/hicolor/scalable/hildon/ it will automatically scale your icon at right size to every place where it's needed.
I'm not so sure about this but just a guess..

And also i didn't get to work my icon to xterm ssh until i changed "Terminal=true" to "Terminal=false" in app.desktop file.

archebyte 2009-12-11 19:44

Re: xterminal "top" shortcut
 
Quote:

Originally Posted by les_garten (Post 423405)
Would yours have worked if you had used a 26x26?

Yes. but it doesn't scale nicely.

Quote:

Originally Posted by les_garten (Post 423405)
Also, my 26x26 works great for the shortcut but does not show up like yours does here in the main app menu. I just get a generic icon there??

If it doesn't show up after a reboot, I am not sure what the problem may be.


| Prev |   1     2   3   4     5   | Next | Last
All times are GMT. The time now is 11:34.

vBulletin® Version 3.8.8