You are not logged in.
After running the printenv command, I noticed several environment variables that I recognize, except for a few that I'm curious about:
KONSOLE_DBUS_WINDOW=/Windows/1
JOURNAL_STREAM=8:27766
QSG_RENDER_LOOP=basic
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
MAIL=/var/spool/mail/jmThe variable that stands out to me the most is KONSOLE_DBUS_WINDOW=/Windows/1. I used to have a dual-boot setup with Windows, but I have since removed it and there is no longer a /Windows directory on my system.
When I checked /etc/environment, the only variable set there is MOZ_ENABLE_WAYLAND=1 firefox, (this one I created).
I have also checked /etc/profile, ~/.bash_profile, and ~/.profile, but none of them contain any variables.
I tried
sudo find /home/jm/ -type f -size -1M -exec grep "KONSOLE_DBUS_WINDOW" {} \;However, it did not return any results, and using the -size -2M option seems to take forever.
Last edited by 860lacov (2023-04-27 09:37:28)
Offline
This will give you a set of pids with that variable in their environment
sudo find /proc/ -name environ -exec grep -l 'KONSOLE_DBUS_WINDOW=' '{}' \+ | cut -d / -f 3 | sort -uThen check what processes those are. One of those processes set it ... start checking with the lowest numbered pids. Or as a script:
#!/bin/sh
sudo find /proc/ -name environ -exec grep -l 'KONSOLE_DBUS_WINDOW=' '{}' \+ 2>/dev/null \
| cut -d / -f 3 \
| sort -nu \
| while read pid; do
cat /proc/$pid/comm 2>/dev/null
doneSidenote: there is no reason to use sudo to run find on your home directory as you did
But are you using KONSOLE as your terminal? I'd guess that'd be what's setting that variable.
Last edited by Trilby (2023-04-26 13:08:50)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
But are you using KONSOLE as your terminal? I'd guess that'd be what's setting that variable.
https://github.com/KDE/konsole/blob/v23 … r.cpp#L606
Edit:
https://www.freedesktop.org/software/sy … NAL_STREAM
Edit2:
DBUS_SESSION_BUS_ADDRESS is set by pam_systemd https://github.com/systemd/systemd/comm … 925640f0b7
Last edited by loqs (2023-04-26 14:21:57)
Offline
This will give you a set of pids with that variable in their environment
sudo find /proc/ -name environ -exec grep -l 'KONSOLE_DBUS_WINDOW=' '{}' \+ | cut -d / -f 3 | sort -uThen check what processes those are. One of those processes set it ... start checking with the lowest numbered pids. Or as a script:
#!/bin/sh sudo find /proc/ -name environ -exec grep -l 'KONSOLE_DBUS_WINDOW=' '{}' \+ 2>/dev/null \ | cut -d / -f 3 \ | sort -nu \ | while read pid; do cat /proc/$pid/comm 2>/dev/null doneSidenote: there is no reason to use sudo to run find on your home directory as you did
But are you using KONSOLE as your terminal? I'd guess that'd be what's setting that variable.
I had some files owned by root in my home directory. That's why sudo.
Yes. I use konsole
Trilby wrote:But are you using KONSOLE as your terminal? I'd guess that'd be what's setting that variable.
https://github.com/KDE/konsole/blob/v23 … r.cpp#L606
Edit:
https://www.freedesktop.org/software/sy … NAL_STREAM
Edit2:
DBUS_SESSION_BUS_ADDRESS is set by pam_systemd https://github.com/systemd/systemd/comm … 925640f0b7
Thank you.
I tried to search environments variables in google, but didn't find anything related.
Did you know about those things or are you just better with searching?
Offline
c) "all of the above"
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Offline