maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Desktop Command Execution Widget scripts (https://talk.maemo.org/showthread.php?t=39177)

Aonsaithya 2011-05-26 23:41

Re: Desktop Command Execution Widget scripts
 
Anyone got any input on the issues described in these threads? DCE has become pretty much unusable for me.

Hildon Desktop Shortcut Freezing Randomly
http://talk.maemo.org/showthread.php?t=72147

widgets disappearing
http://talk.maemo.org/showthread.php?t=43144

aldebarab 2011-06-27 20:09

Re: Desktop Command Execution Widget scripts
 
Hallo all,
Is there someone out who can tell me how i can start a background process with DCEW?

I want to establish a ssh Tunnel to an imap server behind a firewall with

ssh -fN -L 1430:imapserver:143 user@borderhost.com

the -fN places ssh into the background. I put my public key on the borderhost.com, so that ssh can login without a password.

It works from the command line and i can get mail from the imap host (127.0.0.1:1430 as imap server ;-).

But when invoked by the DCEW widget, the widget stays selected (waiting for the "background".ssh process to finish) and all other hildon buttons are blocked.

When I kill the ssh tunnel process from another ssh session from my pc to the n900, the widget gets deselected and hildon works normally.

Anyone any suggests?

Chears ari

mjec 2011-06-28 06:07

Re: Desktop Command Execution Widget scripts
 
Quote:

Originally Posted by aldebarab (Post 1040253)
ssh -fN -L 1430:imapserver:143 user@borderhost.com

Maybe try:

Code:

ssh -fN -L 1430:imapserver:143 user@borderhost.com &
or a shell script which returns after starting ssh -fN.

aldebarab 2011-06-28 09:20

Re: Desktop Command Execution Widget scripts
 
[QUOTE=mjec;1040503]Maybe try:

Code:

ssh -fN -L 1430:imapserver:143 user@borderhost.com &
Thank you for the answer, I have of course tried that before, it does not work either.

The -fN switch should do the same as '&'.

Thanks ari

cpscotti 2011-06-28 09:54

Re: Desktop Command Execution Widget scripts
 
Have you tried:
Code:

ssh -fN -L 1430:imapserver:143 user@borderhost.com | echo ""
(just in case..)

aldebarab 2011-07-11 16:10

Re: Desktop Command Execution Widget scripts
 
Quote:

Originally Posted by cpscotti (Post 1040648)
Have you tried:
Code:

ssh -fN -L 1430:imapserver:143 user@borderhost.com | echo ""
(just in case..)

Hi scotti,
that worked for me, thank you!

nathaneous 2011-09-18 07:50

Re: Desktop Command Execution Widget scripts
 
Does anyone know a script to open up a specific website?
For example i want a a script to open up www.goal.com

Thanks

Aonsaithya 2011-09-18 09:25

Re: Desktop Command Execution Widget scripts
 
Quote:

Originally Posted by nathaneous (Post 1090870)
Does anyone know a script to open up a specific website?
For example i want a a script to open up www.goal.com

Thanks

http://wiki.maemo.org/Desktop_Comman..._start_browser

Code:

/usr/bin/browser_dbuscmd.sh load_url http://www.goal.com


Haven't tested myself though, I prefer to make desktop shortcuts for websites (.desktop files + small icons) because DCE has always been a bit unstable for me.

Saturn 2011-09-18 16:03

Re: Desktop Command Execution Widget scripts
 
Quote:

Originally Posted by nathaneous (Post 1090870)
Does anyone know a script to open up a specific website?
For example i want a a script to open up www.goal.com

Thanks

if you don't want to use any special script then (in one line) enter:

Code:

dbus-send --system --type=method_call --dest=com.nokia.osso_browser /com/nokia/osso_browser/request com.nokia.osso_browser.load_url string:"www.goal.com"
check for more: http://wiki.maemo.org/Phone_control#...ink_in_browser

nathaneous 2011-09-25 15:40

Re: Desktop Command Execution Widget scripts
 
Hi Guys

Sorry for being a noob, but i'm looking for a script that will 'compose new email' and another script to 'compose new text message'

I couldnt find these scripts in the DCEW wiki?


All times are GMT. The time now is 13:43.

vBulletin® Version 3.8.8