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 Wed 19 Jun 2013, 05:05
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Lxpanel: make terminal programs start from the menu
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count_1  
Author Message
disciple

Joined: 20 May 2006
Posts: 6199
Location: Auckland, New Zealand

PostPosted: Sun 24 Jun 2012, 05:29    Post_subject:  Lxpanel: make terminal programs start from the menu
Sub_title: How to configure lxpanel so Terminal=true in .desktop file is respected
 

I've been using lxpanelx for a while now. Anything like this is more bloated that I would prefer, but I recently upgraded to more ram, so it isn't a real issue, although I don't expect I'll use it long term.
Lxpanelx is a very nice fork of lxpanel with a bunch of extra features like being able to rearrange programs in the taskbar. It sounds like its features will get merged back into the main lxpanel, which would be good...

Anyway, sometimes command-line programs provide .desktop files so they can be available in the menu. These include this property, to tell programs like lxpanel that they need to be launched in a terminal emulator:
Code:
Terminal=true

Examples of programs with this include htop (process manager), R (statistics program) and Octave (maths program; matlab alternative).
I'm not sure, but I suspect some of the panels and window managers commonly used in Puppy like JWM don't respect this property, in which case when people package programs like this for Puppy they probably edit the .desktop files to start the programme in rxvt or something.

Lxpanel(x) does respect this property, but I was having trouble figuring out what to specify in the settings to get it to work - a terminal window would flash up for a fraction of a second and then close.
It was partly confusing because in the setting for file manager I need to put this for the "Directory Menu" plugin to be able to open directories:
Code:
rox %s

So I thought maybe I needed to include %s in the setting for terminal emulator. But it turns out that I don't.
This didn't work:
Code:
urxvt -e

Starting lxpanel from a terminal I found that there were no error messages or anything produced.
This gave me a terminal window that just said "urxvt: unable to execute child":
Code:
urxvt -hold -e

I came somebody who suggested to use this:
Code:
urxvt -e bash -c

and said
Quote:
My experience is, that "urxvt -e" can't execute shell scripts.

Now, it doesn't actually seem to be anything to do with shell scripts, because some of the programs that wouldn't work for me are not shell scripts, and there are reports that some shell scripts work anyway. On the other hand, it does seem to be something to do with the fact that it is being called by the panel. For example, if I run something like this in a terminal it works as expected:
Code:
urxvt -e octave

Anyway, the suggested command for the lxpanel setting works.
This also works, if you'd prefer the terminal to remain open after you exit the program:
Code:
urxvt -hold -e bash -c

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count_1  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0544s ][ Queries: 12 (0.0123s) ][ GZIP on ]