Registered Member
|
Hello,
I have a script file in
If I change the content to
Nothing gets exported. My guess is because it's not executed as "bash". Problem is, I'd love to be able to export all those variables that some 3rd-party scripts create for my bash profile (chruby, asdf, nvm and friends), but they are bash scripts, so I cannot execute them since those scripts are being executed as "sh" scripts. Is there any workaround or something I should be aware of? Cheers! P.S. I also noticed that if a script from there exits with a non-zero value, I'm blocked from being able to login (had to stop the exit from appearing anywhere) |
Registered Member
|
Not sure if this helps, but I have a line in my .bashrc:
# Important: For kde look in .kde/env/ for a script file, e.g. path.sh for setting user specific environment variables RCB 02/02/13 11:56:48 source $HOME/.kde/env/path.sh I also have the same path.sh stored in ~/.config/plasma-workspace/env, but b/c of the source statement in .bashrc I would expect that at least to be working. Here's my path.sh:
Migrated from Linux Mint 17.3/18.3 KDE to KDE neon User Edition.
|
Registered Member
|
Tested, .kde/env doesn't get executed at all, it's an old directory |
Registered Member
|
Good to know, thanks. Another change in the move from kde 4 to 5. I was going to test as well but have not gotten a round tuit.
Migrated from Linux Mint 17.3/18.3 KDE to KDE neon User Edition.
|
Registered Member
|
I take that back. How did you test? I find a symbolic link to .kde/env:
I now have a round tuit
Migrated from Linux Mint 17.3/18.3 KDE to KDE neon User Edition.
|
Registered Member
|
I tested by disabling everything in plasma workspace and manually moving the file to .kde/env, they don't get executed at all, so even if you have the symlink, it's just irrelevant. What matters is plasma-workspace/env |
Registered Member
|
Sorry to belabor this. The code I showed stated that the symlink is in ~/.config/plasma-workspace/env where path.sh is shown as a symlink back to ~/.kde/env/path.sh. I did not create the symlink in .config and presume KDE Neon must have done that as a carryover going from KDE 4 to Plasma 5. If so, that's a nice touch, and kudos to the developers. As such I can now remove the "$HOME/.kde/env/path.sh" statement from my .bashrc since ~/.config/plasma-workspace/env/path.sh accomplishes the same thing. I have a feeling we may be saying the same thing. If not, I willingly defer to you. I still have a round tuit, but there is "More than one way to skin a cat." BTW that's in reference to catfish for all you feline lovers.
Migrated from Linux Mint 17.3/18.3 KDE to KDE neon User Edition.
|
Registered Member
|
Yep I meant exactly that!
|
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]