Discussion:
[9fans] win from acme starts bash
(too old to reply)
Costin Chirvasuta
2012-10-31 16:02:20 UTC
Permalink
Hello,

I'm trying to get win to start rc when I run it from acme. I've set
SHELL to "rc" but it doesn't seem to have any effect. If I button 2
click "win" it starts with bash. If I run win from here it starts with
rc. What am I doing wrong? The script I use to start acme is:

#!/bin/bash

export PLAN9=/usr/local/plan9
export PATH=$PLAN9/bin:$PATH
export mousescrollsize=3
export font=/usr/local/plan9/font/vga/unicode.font

/usr/local/plan9/bin/acme -l /home/costin/acme.dump
Bakul Shah
2012-10-31 20:10:26 UTC
Permalink
Post by Costin Chirvasuta
Hello,
I'm trying to get win to start rc when I run it from acme. I've set
SHELL to "rc" but it doesn't seem to have any effect. If I button 2
click "win" it starts with bash. If I run win from here it starts with
#!/bin/bash
export PLAN9=/usr/local/plan9
export PATH=$PLAN9/bin:$PATH
export mousescrollsize=3
export font=/usr/local/plan9/font/vga/unicode.font
/usr/local/plan9/bin/acme -l /home/costin/acme.dump
Does export SHELL in your script work?

SHELL=$PLAN9/bin/rc acme

works for me.
dexen deVries
2012-10-31 20:01:59 UTC
Permalink
Hello Costin,
Post by Costin Chirvasuta
I'm trying to get win to start rc when I run it from acme. I've set
SHELL to "rc" but it doesn't seem to have any effect. If I button 2
click "win" it starts with bash. If I run win from here it starts with
if you start Acme from X.org desktop, you run it in environment defined upon
login to X.org. Re-logging to X.org should do the trick.

KDE's kdm seem to read both /etc/profile{,.d/*} and ~/.profile; not sure about
~/.bash_profile or ~/.bashrc.


Cheers,
--
dexen deVries

[[[↓][→]]]

I have seen the Great Pretender and he is not what he seems.
Costin Chirvasuta
2012-11-01 09:01:46 UTC
Permalink
Post by dexen deVries
if you start Acme from X.org desktop, you run it in environment defined upon
login to X.org. Re-logging to X.org should do the trick.
KDE's kdm seem to read both /etc/profile{,.d/*} and ~/.profile; not sure about
~/.bash_profile or ~/.bashrc.
Can't believe I missed that. Thanks!

Loading...