Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: PATH & file manager issues< Next Oldest | Next Newest >
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Aug. 12 2005,20:39 QUOTE

A couple of minor changes in DSL could make it a little more useful.

First, the PATH variable is currently not passed on to child terminals unless the user manually sets the variable in .bashrc.  The reason for this, as far as I can tell, is that /etc/bash.bashrc sources /etc/profile every time you open a new bash shell.  /etc/profile sets the PATH variable explicitly (rather than adding to it), thus overwriting anything you may have set in a parent shell with the export command.  As I see it, /etc/profile needs to be run only once during a session instead of with every xterm you open, and it's rather frustrating to have to work around something that shouldn't be there in the first place.  I can understand sourcing a non-login rc from a login rc, but doing it the other way around seems illogical and limiting.

Second, EmelFM and Midnight Commander are both started from a wrapper script.  This is a reasonable thing considering what the wrappers do, but they are both missing a vital feature...the ability to accept commandline parameters.  A standard installation of either file manager allows the user to specify a directory as a parameter, but it does not work in DSL because the wrappers do not pass parameters onto the main programs.
I know you can use mc.bin and emelfm.bin, but this defeats the purpose of using the wrappers.

EDIT: my apologies for posting in the wrong forum.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Aug. 15 2005,17:23 QUOTE

Sourcing of /etc/profile goes all the way back to Knoppix from which we are derived. However, I had changed way DSL boots and do use a login. Therefore, I can and have dropped the sourcing of /etc/profile from bash.bashrc. Good analysis, mikshaw.
Back to top
Profile PM WEB 
1 replies since Aug. 12 2005,20:39 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: PATH & file manager issues

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code