LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 11-25-2009, 03:50 AM   #1
cmk77
Member
 
Registered: May 2006
Location: netherlands
Distribution: slackware, centos, scientificlinux
Posts: 119

Rep: Reputation: 24
xfce launcher & inherit env


In the xfce panel I made a launcher button for emacs but I find that the bashrc environment is not inherited. So now I have to open a terminal and type emacs which is a bit of a nuisance. Is there any way to tell the launcher to inherit my environment?
 
Old 11-25-2009, 05:36 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Is there not a checkbox for "run in terminal"?
 
Old 11-25-2009, 06:21 AM   #3
cmk77
Member
 
Registered: May 2006
Location: netherlands
Distribution: slackware, centos, scientificlinux
Posts: 119

Original Poster
Rep: Reputation: 24
yes, there is. But if I check the box "run in terminal" it just opens xterm and doesn't launch emacs.
 
Old 11-25-2009, 08:11 AM   #4
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Sounds strange. Anyway, perhaps you can write a simple script to start emacs in proper environment and use the Launcher to run that script?
 
Old 11-25-2009, 11:58 AM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,563
Blog Entries: 29

Rep: Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179
Here's a command line used in an Xfce launcher to start an mrxvt terminal, run a command in it and leave the terminal open. Perhaps it can be adapted to run emacs in the terminal emulator you are using. The bash --rcfile technique was one of the first golden nuggets I learned from LQ.
Code:
/usr/bin/mrxvt -e /bin/bash --rcfile /home/c/d/bin/.MyConnectivityTestWrapper.rc
MyConnectivityTestWrapper.rc simply sources ~/.bashrc and then runs the desired (connectivity test) command.

Last edited by catkin; 11-25-2009 at 11:58 AM. Reason: Typos
 
1 members found this post helpful.
Old 11-26-2009, 03:19 AM   #6
cmk77
Member
 
Registered: May 2006
Location: netherlands
Distribution: slackware, centos, scientificlinux
Posts: 119

Original Poster
Rep: Reputation: 24
Thanks! I changed it to:
Code:
/bin/bash --rcfile /path/to/bashrc -c /usr/bin/emacs
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
xfce launcher always maximised windows geokker Linux - General 0 12-19-2007 04:05 AM
why do we use gerp & env & wht is their funda nikhil_rs_maheshwari Solaris / OpenSolaris 12 03-06-2006 03:21 PM
XFCE 2 state launcher conundrum Galik Linux - Software 2 08-04-2004 09:12 PM
poweroff reboot launcher for xfce w/ KDM? r_jensen11 Linux - Software 2 01-17-2004 05:00 PM
XFCE and kde/gnome apps (launcher menu question) JimDog Linux - Newbie 2 10-11-2003 08:43 AM


All times are GMT -5. The time now is 03:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration