Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 26 May 2015, 02:01
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Howto make Geany execute command (F5 key) to work
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [11 Posts]  
Author Message
Uten


Joined: 29 Jan 2008
Posts: 91

PostPosted: Sun 14 Jul 2013, 07:23    Post subject:  Howto make Geany execute command (F5 key) to work  

Fore some reason the Geany execute ( F5 ) does not work for me. I have tried with shell scripts and at the moment python. All I get is a flashing window.

To solve this I tried the command found in Edit->preferences->tools->terminal in a normal terminal, just replacing %c with rox.
Code:
/usr/bin/xterm -e "/bin/sh rox"

This gives the same flashing window.

Trying
Code:
/usr/bin/xterm -e /bin/sh rox

Opens rox as expected.

Now removing the "" pair from the preferences dialog in Geany solves my problem. Now I can execute my scripts from within Geany. Very handy when you do a write - unit test - write cycle.

Happy coding.
Back to top
View user's profile Send private message 
afishe2000

Joined: 29 Jan 2010
Posts: 37

PostPosted: Wed 11 Sep 2013, 10:13    Post subject:  

Tired of banging my head against the wall here...

I cant get this to work under Slacko 5.6.

Any suggestions?

Thank you
Back to top
View user's profile Send private message 
Uten


Joined: 29 Jan 2008
Posts: 91

PostPosted: Tue 17 Sep 2013, 04:47    Post subject:  

Sorry I'm late replying afishe2000.

I'm on precise 5.7 at the moment and python / shell scripts works out of the box (the terminal stays open and executes the script). This is the default executing command (edit->preferences->tools->terminal): /usr/bin/xterm -e bash -c

I remember that I used to run the scripts in the embedded terminal window with some success. but I can't recall the puppy version. Geany in precise 5.7 seems to be compiled without the embedded terminal support. CTRL+ALT+P to get the preferences window and look for the terminal flip (if memory serves me right)

I don't have slacko 5.6 so I can't test at the moment. Could you describe what happens when you try to execute a script?
Back to top
View user's profile Send private message 
cimarron

Joined: 30 May 2013
Posts: 207

PostPosted: Tue 17 Sep 2013, 09:01    Post subject:  

I use roxterm (on Lupu 5.1) and this command in Geany preferences works for me:

/usr/bin/roxterm -e bash -c
Back to top
View user's profile Send private message 
afishe2000

Joined: 29 Jan 2010
Posts: 37

PostPosted: Tue 17 Sep 2013, 12:34    Post subject:  

Thanks to all,

Will give it a try and let everyone know.
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 671
Location: Japan

PostPosted: Tue 29 Oct 2013, 04:23    Post subject:  

afishe2000 wrote:
I cant get this to work under Slacko 5.6.
Any suggestions?

Change the command
Code:
/usr/bin/xterm -e "/bin/sh %c"

to
Code:
/usr/bin/xterm -e /bin/sh "%c"
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 671
Location: Japan

PostPosted: Fri 08 May 2015, 22:41    Post subject:  

Sorry for reviving an old thread. Fiddling with F5 lately I wonder why xterm is the default terminal even in the newest Slacko.

In Slacko xterm is not a terminal, it's rather an awful hack for a problem that doesn't exist. It doesn't even work properly (needs escaped quotes where rxvt/urxvt do not), so I suggest to change F5 command to
Code:
/usr/bin/urxvt -e  /bin/sh "%c"
Back to top
View user's profile Send private message 
starhawk

Joined: 22 Nov 2010
Posts: 3835
Location: Everybody knows this is nowhere...

PostPosted: Fri 08 May 2015, 22:43    Post subject:  

Just curious -- what exactly IS xterm in Slacko, if it's not a terminal?
_________________

Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 671
Location: Japan

PostPosted: Fri 08 May 2015, 22:50    Post subject:  

A script to create another script to access a terminal....
Back to top
View user's profile Send private message 
starhawk

Joined: 22 Nov 2010
Posts: 3835
Location: Everybody knows this is nowhere...

PostPosted: Fri 08 May 2015, 22:57    Post subject:  

Ugh, that's awful.
_________________

Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 671
Location: Japan

PostPosted: Tue 12 May 2015, 08:04    Post subject:  

I'm surprised to find you surprised. It appears that you prefer Tahrpup, which uses the same xterm script, but packs it into an even uglier Geany command:
Code:
/usr/bin/xterm -e bash -c -e "/bin/sh %c"
A lot of bashing here. At least it works.

In Fatdog xterm is a symlink to urxvt - good idea, but Fatdog miserably fails in Geany. The same faulty command as in Slacko. Seems that nobody cares about this stuff or nobody uses it.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [11 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0674s ][ Queries: 11 (0.0033s) ][ GZIP on ]