[rkward-devel] system() and exported paths

Thomas Friedrichsmeier thomas.friedrichsmeier at ruhr-uni-bochum.de
Fri Jun 10 11:57:55 UTC 2011


On Thursday 09 June 2011, Matthieu Stigler wrote:
> so if I do on command line:
> $ echo $PATH
> /home/faonix/Documents/Ordi/Latex/Context/contextMinim/tex/texmf-linux-64/b
> in:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
> I get the same with R in console. However, if I try the same from Rkward:
> system("echo $PATH")
> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
> So it looks like Rkward behaves differently... why? How can I change it
> so that it shows same output as in console?

well, if you start RKWard from the console, then it should be the same PATH, 
right? So the problem is when launching from the applications menu, only, 

After some testing on my machine, it looks like:
- Modifications in .bashrc do not take effect in rkward when launched from the 
appliations menu
- Modifications in .bash_profile do take effect (after logging out / in).

I'm not sure, whether or not this is expected behavior, but if it is a bug, 
then that bug is not specific to RKWard, at least. In any case I would suspect 
that any other GUI application launched from the menu will behave the same.

Does anybody have more insight on this?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/rkward-devel/attachments/20110610/a9f4573a/attachment.sig>

More information about the Rkward-devel mailing list