dx-packages team mailing list archive
-
dx-packages team
-
Mailing list archive
-
Message #05292
[Bug 1102727] Re: Shortcut launcher make bash to not read .bashrc
This is not a problem of bash behaviour, it's a problem in the command
launcher when you create a shortcut in the environment.
To test it, I created a shortcut with:
gnome-terminal -t "Python 2" -x bash -l -c python2
(attached to the combination ctrl-alt-2)
Then, I hit ctrl-alt-2, a terminal appeared with the python2 interpreter
on it (all ok) but still didn't have the bash environment variables
declared in the .bashrc (wrong, which is what this bug is about).
So, I reopened the bug.
Thanks!
** Changed in: unity
Status: Invalid => New
** Changed in: unity (Ubuntu)
Status: Invalid => New
--
You received this bug notification because you are a member of DX
Packages, which is subscribed to unity in Ubuntu.
Matching subscriptions: dx-packages
https://bugs.launchpad.net/bugs/1102727
Title:
Shortcut launcher make bash to not read .bashrc
Status in Unity:
New
Status in “unity” package in Ubuntu:
New
Bug description:
I always had (well, since around Karmic), a shortcut in my
environment, so when I hit ctrl-alt-2, the following snippet would be
executed (or very very similar, now adapted to the python 2/3
duality):
gnome-terminal -t "Python 2" -x bash -c python2
As you can see, this opens a terminal (titled "Python 2") which
executes a bash, that executes python2.
Why not make gnome-terminal to execute directly python2? Because as
I'm executing bash, it'd read the .bashrc file that sets the
PYTHONSTARTUP and PYTHONPATH environment vars. It always worked as I
just described.
After I migrated to Quantal this stopped working. It still executes a
gnome-terminal, ending in the execution of python2 inside it, but
somehow, the .bashrc file is not executed, as the executed Python
doesn't have correctly set sys.path.
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: unity 6.10.0-0ubuntu2
ProcVersionSignature: Ubuntu 3.5.0-18.29-generic 3.5.7
Uname: Linux 3.5.0-18-generic i686
ApportVersion: 2.6.1-0ubuntu9
Architecture: i386
CompizPlugins: [core,bailer,detection,composite,opengl,decor,mousepoll,vpswitch,regex,animation,snap,expo,move,compiztoolbox,place,grid,imgpng,gnomecompat,wall,ezoom,workarounds,resize,fade,unitymtgrabhandles,scale,session,unityshell]
Date: Mon Jan 21 23:29:59 2013
EcryptfsInUse: Yes
InstallationDate: Installed on 2011-04-19 (644 days ago)
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Beta i386 (20110413)
MarkForUpload: True
SourcePackage: unity
UpgradeStatus: Upgraded to quantal on 2012-10-22 (91 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/unity/+bug/1102727/+subscriptions