-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make location of .xsession-errors configurable #95
Comments
I think so. |
+1 to this, it would be great to have a configurable location for .xsession-errors. funny enough, this issue dates back to 2012 (if not earlier): |
This is a simple, but useful change. Uncontrollable growth of |
Quick'n'dirty hack:
doesn't follow |
There's even dirtier hack that doesn't require recompilling or anything... you can just edit /usr/sbin/lightdm in ghex (or any binary editor) and find the null ended string '.xsession-errors', and replace it. Very important: you shouldn't change the the size of the string but you can put a dirname (with /) there.. |
Just discussed today with colleagues, this pandemic drastically changed everyone. You seem to have become very bold, Sir. |
It was just obsessive for me to fix it today and apt build-dep lightdm wanted too many staff so that's what I did... ;) btw. I remember modifying mbr using ghex and dd to resize root partition without unmounting so... ;P |
Any updates on this simple but useful change? |
Friendly bump |
Here's a small script I compiled from the above answers. Ubuntu 22.04
|
Another friendly bump. Having the .xsession-errors file in $HOME doesn't make a lot of sense to me. |
Wouldn't there be some crazy coder to add this useful feature? |
another bump |
bumpy ride... |
@robert-ancell would you please kindly have a look at #287 or provide a reason why this change is unwelcome? |
bump |
LightDM always uses
$HOME/.xsession-errors
as the log file because it is harcoded. There are several possible reasons for someone to define another location, for example to write it into the RAM or to just have a tidier$HOME
-folder.$HOME
just isn't the right place for the file.$XDG_RUNTIME_DIR
(that's/run/user/$UID
with systemd) or$XDG_CACHE_HOME
(=$HOME/.cache
)$XDG_STATE_HOME
, which defaults to$HOME/.local/state
is much more suitable.Currently there is no way around this one path. So please make it configurable. I could live with a hardcoded path, too, if it was the aforementioned plus an xorg subfolder.
Edit 2023-06-06: Updated to $XDG_STATE_HOME.
The text was updated successfully, but these errors were encountered: