Skip to Content.
Sympa Menu

sm-sorcery-bugs - [SM-Sorcery-Bugs] [Bug 7524] Menu option to set editor

sm-sorcery-bugs AT lists.ibiblio.org

Subject: Bugs for Sorcery are reported here

List archive

Chronological Thread  
  • From: bugzilla-daemon AT metalab.unc.edu
  • To: sm-sorcery-bugs AT lists.ibiblio.org
  • Subject: [SM-Sorcery-Bugs] [Bug 7524] Menu option to set editor
  • Date: Sun, 17 Oct 2004 03:45:45 -0400

http://bugs.sourcemage.org/show_bug.cgi?id=7524





------- Additional Comments From vlmarek AT volny.cz 2004-10-17 03:45 -------
After some investigation, the culprit is bash. According to documentation,
bash
is not supposed to execute any configuration files if -c is given on a
commandline.

I do have two solutions for this.

a) create /etc/sorcery/smgl_login file (can't think of any nice name now)
. /etc/profile :
WHAT_TO_EXEC=''
[ -r ~/.profile ] && WHAT_TO_EXEC=~/.profile
[ -r ~/.bash_login ] && WHAT_TO_EXEC=~/.bash_login
[ -r ~/.bash_profile ] && WHAT_TO_EXEC=~/.bash_profile
. $WHAT_TO_EXEC

and then use:
su - -c ". /etc/sorcery/smgl_login; DISPLAY=$DISPLAY PATH=$PATH $0 $*"

b) create new function in sorcery which will do that, and which will be used
somehow like:
run_as_root "DISPLAY=$DISPLAY PATH=$PATH $0 $*"

I tested a) and it works, b) should work also.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




Archive powered by MHonArc 2.6.24.

Top of Page