I'm sure this is easy, but I haven't been able to find the right place to do it :-(
How do I set the value of an environment variable so that when I run a program from the main T menu, the program will automatically get the correct value of the variable?
I looked at Trinity Control Centre (which is where I expected to find something labelled "Environment Variables", or something similar) but I don't see anything like that there.
Doc
Anno domini 2024 Tue, 5 Nov 08:17:53 -0700 D. R. Evans via tde-users scripsit:
I'm sure this is easy, but I haven't been able to find the right place to do it :-(
How do I set the value of an environment variable so that when I run a program from the main T menu, the program will automatically get the correct value of the variable?
I looked at Trinity Control Centre (which is where I expected to find something labelled "Environment Variables", or something similar) but I don't see anything like that there.
Doc
The usual suspects are:
.profile .bashrc
These are read when TDE sets up the session, so when you change them and do not use bash to start the programs you'll need to restart the current TDE session.
Nik
-- Please do not email me anything that you are not comfortable also sharing with the NSA, CIA ...
Dr. Nikolaus Klepp via tde-users wrote on 11/5/24 08:39:
Anno domini 2024 Tue, 5 Nov 08:17:53 -0700 D. R. Evans via tde-users scripsit:
I'm sure this is easy, but I haven't been able to find the right place to do it :-(
How do I set the value of an environment variable so that when I run a program from the main T menu, the program will automatically get the correct value of the variable?
I looked at Trinity Control Centre (which is where I expected to find something labelled "Environment Variables", or something similar) but I don't see anything like that there.
Doc
The usual suspects are:
.profile .bashrc
These are read when TDE sets up the session, so when you change them and do not use bash to start the programs you'll need to restart the current TDE session.
Nope, neither of those works :-(
I tried exporting the environment variable in ~/.profile, logged out, logged back in, and ran the relevant program from the menu; it behaved as if the environment variable was not set.
Did the same with ~/.bashrc, with the same result.
Doc
D. R. Evans via tde-users composed on 2024-11-06 07:30 (UTC-0700): ...
.profile .bashrc
~/.bash_profile might be another to try. ...
Nope, neither of those works :-(
Try this clue: # grep envi tdmrc # Additional environment variables TDM should pass on to all programs it runs. #
Did you see Riley's response yesterday (~/.trinity/env/)?
Depending on your distro, e.g. Debian, possibly a custom script in /etc/X11/Xsession.d/?
D. R. Evans via tde-users wrote:
I tried exporting the environment variable in ~/.profile, logged out, logged back in, and ran the relevant program from the menu; it behaved as if the environment variable was not set.
Did the same with ~/.bashrc, with the same result.
TDE as it was in KDE3 does not read the environment variables from the shell AFAIR.
I don't know about ~/.trinity/env/ although I have a shell script there from 2015 that sets some keycodes. Unfortunately I do not remember anything about it :/
Anno domini 2024 Thu, 07 Nov 00:16:45 +0100 deloptes via tde-users scripsit:
D. R. Evans via tde-users wrote:
I tried exporting the environment variable in ~/.profile, logged out, logged back in, and ran the relevant program from the menu; it behaved as if the environment variable was not set.
Did the same with ~/.bashrc, with the same result.
TDE as it was in KDE3 does not read the environment variables from the shell AFAIR.
I don't know about ~/.trinity/env/ although I have a shell script there from 2015 that sets some keycodes. Unfortunately I do not remember anything about it :/
Oh, there is another way: you can set environment variables in ~/.xsessionrc - that's what I use to do dirty startup stuff :)
Nik
tde-users mailing list -- users@trinitydesktop.org To unsubscribe send an email to users-leave@trinitydesktop.org Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@trinitydeskto...
-- Please do not email me anything that you are not comfortable also sharing with the NSA, CIA ...
On Tuesday 05 November 2024 7:17:53 am D. R. Evans via tde-users wrote:
I'm sure this is easy, but I haven't been able to find the right place to do it :-(
How do I set the value of an environment variable so that when I run a program from the main T menu, the program will automatically get the correct value of the variable?
I looked at Trinity Control Centre (which is where I expected to find something labelled "Environment Variables", or something similar) but I don't see anything like that there.
Doc
You can make scripts in ~/.trinity/env to export environment variables. I agree there should be an easy to use UI though. I like how LXQt does it.
Riley Bell via tde-users wrote on 11/5/24 11:10:
You can make scripts in ~/.trinity/env to export environment variables. I agree there should be an easy to use UI though. I like how LXQt does it.
Yep, that did it. Thank you very much.
But really there ought to be a way to do this through the Trinity Control Centre. I know that the next time I need to do this, perhaps in five years' time, I'll have completely forgotten about your solution.
Doc
On Fri, 8 Nov 2024 08:58:34 -0700 "D. R. Evans via tde-users" users@trinitydesktop.org wrote:
Hello D.,
I know that the next time I need to do this, perhaps in five years' time, I'll have completely forgotten about your solution.
You've got a computer.
It's got a note taking application or document processor.
.....
Anno domini 2024 Sat, 9 Nov 07:36:34 +0000 Brad Rogers via tde-users scripsit:
On Fri, 8 Nov 2024 08:58:34 -0700 "D. R. Evans via tde-users" users@trinitydesktop.org wrote:
Hello D.,
I know that the next time I need to do this, perhaps in five years' time, I'll have completely forgotten about your solution.
You've got a computer.
It's got a note taking application or document processor.
.....
Actually there is a native TDE application called "basket" that's quite good at it. If you like zim and get annoyed with it's GTK crippleware problems then you should give it a try :)
Nik
-- Please do not email me anything that you are not comfortable also sharing with the NSA, CIA ...
On Sun, 10 Nov 2024 10:35:24 +0100 "Dr. Nikolaus Klepp via tde-users" users@trinitydesktop.org wrote:
Hello Dr.,
Actually there is a native TDE application called "basket" that's quite
Options.
There's *always* options. ;-)