This is far from a clean or truly simple workaround, but FWIW, here's what I've done... I thought logrotate, with the copytruncate option, might be a reasonable hack to address that rapidly growing ~/.xsession- errors file. (BTW, I'm running Xubuntu 11.10). Unfortunately, the "out- of-the-box" configuration options do not allow you to specify a frequency greater than daily, which is not good enough to address this bug. So, I've created an hourly cron job to call logrotate (with no frequency option, like daily, so it will run each time it's called), and passed a custom configuration file (basically based on the "stock" one at /etc/logrotate.conf).
You can run the following 3 commands to implement my hack- of-a-workaround (note that the first two are multi-line commands, from "sudo" to "EOF"). Feel free to check out the man page for logrotate for other options, or maybe use crontab instead of /etc/cron.hourly/ for a more frequent cron job. Also, any other feedback or advice is welcome! sudo tee /etc/logrotate.hourly.conf <<EOF # see "man logrotate" for details $HOME/.xsession-errors { compress delaycompress copytruncate missingok rotate 10 size 100M } EOF sudo tee /etc/cron.hourly/logrotate <<EOF #!/bin/sh # I'm adding this to get some hourly logrotate, in addition to the stock /etc/cron.daily/logrotate /usr/sbin/logrotate /etc/logrotate.hourly.conf EOF sudo chmod +x /etc/cron.hourly/logrotate -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/883464 Title: remmina fills up ~/.xsession-errors when network connection is lost To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/remmina/+bug/883464/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs