![]() Registered Member ![]()
|
I want to include my timezone in datetime stamps in dialogs, but the variable values are blank (or missing) in Dolphin and Kalarm.
I set an environment variable TIMEZONE in ~/.kde/env/path.sh (or ~/.config/plasma-workspace/env/path.sh) as export TIMEZONE=$(date +%Z) which resolves to MST (Mountain Standard Time) and in /etc/environment export TIMESZONE=MDT (Mountain Daylight Time-hard coded purposely as Daylight since substitutions are forbidden). When I run a routine in Cron the timezone displays correctly as 2020-11-29 15:42:46 MDT. In a terminal session attached to Dolphin if I echo $TIMEZONE I get a blank line instead of MST. Same is true in Kalarm scripts. I get a blank. When I enter printenv>printenv.txt and edit printenv.txt TIMEZONE shows as TIMEZONE=blank. Same thing happens if I issue the same command as a script from Kalarm. echo $TIMEZONE in Konsole properly shows MST:
To further confuse things since $TZ is not created in KDE Neon I created it as
in the path.sh script and export TZ=America/Boise in /etc/environment. TZ shows as America/Boise in Konsole, Dolphin, and Kalarm when using printenv. Running the following Cron job 27 16 * * * root printenv > /tmp/env.txt yields /tmp/env.txt:
Can someone tell me how environment variables are created or made available to Kalarm and Dolphin? I am confused and need some help. inxi -FC:
I
Migrated from Linux Mint 17.3/18.3 KDE to KDE neon User Edition.
|
![]() Registered Member ![]()
|
I learned that autostarting kalarm does not load the correct path nor the entire set of environment variables, but if I run kalarm from konsole the correct path and all environment variables are present. That leads me to believe the issue lies with autostart. I will try removing kalarm from autostart and running a startup script that is delayed 15 seconds to see if that fixes the problem.
Any help/comments would be appreciated.
Migrated from Linux Mint 17.3/18.3 KDE to KDE neon User Edition.
|
Registered users: bancha, Bing [Bot], daret, Evergrowing, Google [Bot], lockheed, mesutakcan, sandyvee, Sogou [Bot]