Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1020302 > unrolled thread
| Started by | Steve McIntyre <steve@einval.com> |
|---|---|
| First post | 2020-08-03 11:10 +0200 |
| Last post | 2020-08-03 11:10 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.debian.bugs.dist
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Bug#287876: Bug#276545: Bug#287876: File $HOME/.xsession-errors grows very large Steve McIntyre <steve@einval.com> - 2020-08-03 11:10 +0200
| From | Steve McIntyre <steve@einval.com> |
|---|---|
| Date | 2020-08-03 11:10 +0200 |
| Subject | Bug#287876: Bug#276545: Bug#287876: File $HOME/.xsession-errors grows very large |
| Message-ID | <AzEDN-18f-27@gated-at.bofh.it> |
Wow, this is an old bug that seemingly got forgotten about! I've just added locally a change to at least rotate the .xsession-errors file at startup, to stop me wasting gigabytes of disk on errors that I don't care about long-term: diff --git a/X11/Xsession b/X11/Xsession index 6ad7d6e..8302900 100755 --- a/X11/Xsession +++ b/X11/Xsession @@ -60,6 +60,10 @@ USERXSESSIONRC=$HOME/.xsessionrc ALTUSERXSESSION=$HOME/.Xsession ERRFILE=$HOME/.xsession-errors +if [ -f "$ERRFILE" ] && [ ! -L "$ERRFILE" ]; then + mv -f "$ERRFILE" "$ERRFILE".old +fi + # attempt to create an error file; abort if we cannot if (umask 077 && touch "$ERRFILE") 2> /dev/null && [ -w "$ERRFILE" ] && [ ! -L "$ERRFILE" ]; then -- Steve McIntyre, Cambridge, UK. steve@einval.com The two hard things in computing: * naming things * cache invalidation * off-by-one errors -- Stig Sandbeck Mathisen
Back to top | Article view | linux.debian.bugs.dist
csiph-web