I’ve been a bit stumped how to get Kate notice some of the environment variables I have.
Luckily, there’s a solution! Session Environment Variables - KDE UserBase Wiki
Just wanted to raise more awareness about this, since it’s a feature well worth using if you do a lot of development.
(Maybe this could use it’s own settings menu? )
6 Likes
#+begin_src sh
#!/bin/sh
# Time-stamp: " "
# This file does nothing. It is a placeholder for display
# in the KDE settings, as a mnemonic for the path.
# LC_ALL=C systemsettings5 / "Startup and Shutdown" / "Autostart" / "Pre-startup Scripts"
# ln -s $0 ~/.config/plasma-workspace/env/
# „Scripts are sourced“. See the description:
# [[https://invent.kde.org/plasma/plasma-workspace/-/blob/master/startkde/startplasma.cpp#L258]]
#+end_src
Not a bad idea; could easily live in the Desktop Session KCM. It might make sense to create this to encourage users to set their environment variables there, and then it would also be a good place to see ones that were previously set so they aren’t forgotten forever and linger around, causing potential problems in the future.
4 Likes