View previous topic :: View next topic |
Author |
Message |
t3k0 n00b
Joined: 27 Nov 2007 Posts: 45
|
Posted: Sun Dec 30, 2018 2:51 pm Post subject: [RESOLVED] LV2_PATH not set |
|
|
Hi all,
I noted that since several months the environment variable LV2_PATH is not set by default. Therefore I manually put a file named "60lv2" in /etc/env.d . Permissions and owner should be fine:
Code: |
# ls -l 60lv2
-rw-r--r-- 1 root root 24 28. Dez 00:49 60lv2
| [/quote]
In this file I added the line
Code: |
LV2_PATH=/usr/lib64/lv2
|
However after every reboot
results in an empty variable.
Only after manually executing
Code: |
source /etc/profile
|
the variable is set to the value above. What am I doing wrong?
I also checked the contents of /etc/profile.env. I contains the line
Code: |
export LV2_PATH='/usr/lib64/lv2'
|
the link /etc/make.profile points to
Code: |
/etc/make.profile -> ../usr/portage/profiles/default/linux/amd64/17.0/desktop
|
Thanks for your help.
Last edited by t3k0 on Fri Jan 04, 2019 12:16 pm; edited 1 time in total |
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Fri Jan 04, 2019 12:10 am Post subject: |
|
|
Quote: | However after every reboot
echo $LV2_PATH
results in an empty variable. |
How exactly do you log in after a reboot? Does your machine boot to a login prompt on a console? Or does it boot to a (graphical) login manager? Which one?
Which shell do you use? Bash?
Please note that bash can be invoked in different modes (interactive login shell, interactive non-login shell, non-interactive shell, ...). Bash executes commands in /etc/profile ONLY if it is invoked as an interactive login shell, or as a non-interactive shell with the --login option. Look at 'man bash', section INVOCATION for details.
Some login managers seem to start the first bash shell after a user logs in NOT as a login shell. Consequently, /etc/profile won't get executed and the user won't have the environment defined in /etc/profile. |
|
Back to top |
|
|
t3k0 n00b
Joined: 27 Nov 2007 Posts: 45
|
Posted: Fri Jan 04, 2019 12:15 pm Post subject: |
|
|
Quote: | How exactly do you log in after a reboot? Does your machine boot to a login prompt on a console? Or does it boot to a (graphical) login manager? Which one?
Which shell do you use? Bash? |
I'm using lightdm as login manager and cinnamon as desktop environment. Usually I'm using the xfce4-terminal with bash. But for the LV2_PATH variable it doesn't seem to matter. E.g. if I start ardour5 using the cinnamon start menu, it becomes clear that LV2_PATH isn't set either.
However, your explanation pointed into the right direction and helped me to find the culprit.
After login in a virtual console (e.g. Ctrl+Alt+F1) I found that the LV2_PATH is set correctly.
/etc/lightdm/lightdm.conf has the following line calling the wrapper script Xsession.
Code: | session-wrapper=/etc/lightdm/Xsession |
And this wrapper script should set the variables. It contains:
Code: |
# Load profile
for file in "/etc/profile" "$HOME/.profile" "/etc/xprofile" "$HOME/.xprofile"; do
if [ -f "$file" ]; then
echo "Loading profile from $file";
. "$file"
fi
done
|
However, it also executed another script I had on my system:
/etc/X11/xinit/xinitrc.d/61cadence-session-inject
This file contained
Code: |
export LV2_PATH="`$INSTALL_PREFIX/bin/cadence-session-start --printLV2_PATH`"
|
After deleting this file, LV2_PATH is set correctly again.
Thanks for your help! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|