The officially official Devuan Forum!

You are not logged in.

#26 2023-12-04 19:48:34

swanson
Member
Registered: 2020-04-22
Posts: 90  

Re: Strategies to deal with .xsession-errors

Think I finally found the right way to rotate .xsession-errors and save a copy too.
It is to use this script:

#!/bin/bash
for i in {9..1}; do
    if [[ -f /home/$USER/.xsession-errors.${i} ]]; then
        mv -f /home/$USER/.xsession-errors.${i} /home/svensson/.xsession-errors.$((i+1))
    fi
done

And in Xfce autostart run it as script at shutdown. At boot doesn't work since the file won't be written to. For some reason.

Offline

Board footer