stefonarch / lxqt-labwc-session

Full configured LXQt Wayland session using labwc with some limitations
GNU General Public License v3.0
29 stars 2 forks source link

Just ask a question for the environment variable #11

Closed knm100 closed 3 months ago

knm100 commented 3 months ago

As I understanded, setting environment variables (e.g. LANG, QT_IM_MODULE) in the environment file of labwc should have the same effect as setting it in startlxqtlabwc, but actually setting it in labwc doesn't seem to have any effect to the lxqt session. I knew it's not an issue, just wanted to ask why. please help!

stefonarch commented 3 months ago

Actually there are 3 places which should work: startlxqtlabwc, labwc/environment and session settings → advanced. How do you set them in labwc/environment? This should work the same.

knm100 commented 3 months ago

Setting in startlxqtlabwc worked, but in labwc/environment didn't work.

knm100 commented 3 months ago

I tried to set LANG in ~/.config/labwc/environment , and logged in labwc, it only don't take effect on the menu of windows title. So it is an issue of labwc

stefonarch commented 3 months ago

Check echo $LANG after login, lxqt will set that too, maybe overriding it.

knm100 commented 3 months ago

I checked the LANG with "echo $LANG", It is set up correctly, but didn't take effect on the menu of windows title

knm100 commented 3 months ago

The above is a bit less detailed, so I'm going to go into more detail about the two variables LANG and QT_IM_MODULE. for LANG, set it in /etc/environment or startlxqtlabwc can take effect on all of menu(At this point, running the command echo $LANG reveals that it is set correctly) set it in $HOME/.config/environment didn't only take effect on the menu of windows title. Directly logging into labwc, it does the same thing. (At this point, running the command echo $LANG reveals that it is set correctly)

for QT_IM_MODULE, set it in /etc/environment or startlxqtlabwc can take effect on all of QT applications (At this point, running the command echo $QT_IM_MODULE reveals that it is set correctly) set it in $HOME/.config/environment can‘t take effect on all of QT applications(At this point, running the command echo $QT_IM_MODULE reveals that it isn't set )

stefonarch commented 3 months ago

$HOME/.config/environment is not standard and will not be read afaik. $HOME/.config/labwc/environment or just export foo=xyz in ~/.bashrc or ~/.profile.

knm100 commented 3 months ago

Sorry, Type error, $HOME/.config/environment shall be $HOME/.config/labwc/environment. At the time of my testing,I set it in $HOME/.config/labwc/environment, not in $HOME/.config/environment.

knm100 commented 3 months ago

for QT_IM_MODULE, set it in /etc/environment or startlxqtlabwc can take effect on all of QT applications (At this point, running the command echo $QT_IM_MODULE reveals that it is set correctly) set it in $HOME/.config/labwc/environment can‘t take effect on all of QT applications(At this point, running the command echo $QT_IM_MODULE reveals that it isn't set )

I just tried again, setting in $HOME/.config/labwc/environment have the same effect as setting in /etc/environment or startlxqtlabwc

for LANG, that is an issue of labwc

批注+2024-06-13+111226