Zneškodnění .xsession-errors

Aus Znalosti
Version vom 3. Juli 2016, 13:36 Uhr von Admin (Diskussion | Beiträge) (Založena nová stránka s textem „Kategorie:Problémy V dřívějších versích Ubuntu strašil v domovském adresáři rostoucí soubor .xsession-errors (možná dosud straší. Pro j…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)

V dřívějších versích Ubuntu strašil v domovském adresáři rostoucí soubor .xsession-errors (možná dosud straší. Pro jistotu podle Disable ~/.xsession-errors in (K)Ubuntu:

Sick of having ~/.xsession-errors filling your disk? Want a 'clean' way to disable XSession logging? I Came across this mailing list entry. There's a slight change required to use this under Kubuntu in that Xsession.d is located in /etc/X11 not /etc/. I simply created a file called /etc/X11/Xsession.d/05-noerrfile containing:

# This is a -*- shell-script -*- fragment called by /etc/X11/Xsession

# Redirect all errors to /dev/null instead of $ERRFILE
# (~/.xsession-errors by default), to avoid filling up users home
# directory with error messages.  Allow the user to disable this by
# creating ~/.xsession-errors-enable

if [ ! -f "$HOME/.xsession-errors-enable" ] ; then
  # Report the change to the log file before switching
  echo "info: Redirecting xsession messages to /dev/null."
  echo "info: touch '$HOME/.xsession-errors-enable' to disable this."
  exec >> /dev/null 2>&1
fi