ThemeSaverApp / themesaver

This is a program that will help you to save your different Linux rice and apply them without rebooting.
https://themesaver.herokuapp.com
GNU General Public License v3.0
137 stars 8 forks source link

'DESKTOP_SESSION' Error in install.py #11

Open blyxyas opened 2 years ago

blyxyas commented 2 years ago

Hi, I tried to run the installer, with qtile started, and it gave this issue:

Traceback(most refcent call last):
File "root/ThemeSaver/install.py", line 16, in <module>
    DE = os.environ["DESKTOP_SESSION"]
File "usr/lib/python/3.10/os.py", line 679, in __getitem__
    raise KeyError(key) from None

This is in Arch, if that changes something

techcoder20 commented 2 years ago

Hi I added a few fixes. Can you try running the install script again

blyxyas commented 2 years ago

I made a total new user, with nothing in it and it worked! In my main user it didn't worked, it just was the same but instead of "DESKTOP_SESSION" was "XDG_DESKTOP_SESSION", I don't know why, because I installed Linux a few days ago, and it has barely the basic, I can't think of anything that may cause that error

blyxyas commented 2 years ago

Ok, now it just doesn't work I tried in this new user multiple times, but I don't know exactly what causes the bug, I tried without startx, with just startx and with exec i3, but it didn't work, just the same error.

What DE is the program made for?