Re: [systemd-devel] Restart SystemD service when Memory Usage in More than a threshold

2023-09-19 Thread Ahmad Ismail
So here is my final service file: tee ~/.local/share/systemd/user/nemo-desktop-bug-workaround.service << END > [Unit] > Description=Nemo Desktop Bug Workaround > Wants=graphical-session.target gnome-session.target > PartOf=graphical-session.target > BindsTo=graphical-session.target [Service] > Ty

Re: [systemd-devel] Restart SystemD service when Memory Usage in More than a threshold

2023-09-18 Thread Ahmad Ismail
Here is the bug https://github.com/linuxmint/nemo/issues/3306 . Unfortunately nemo-desktop is a very important dependency for my regular work. Currently I manually restart it. Restarting this is not as bad as it sounds like. Just the desktop icons go away and come back. Here is the service file I

Re: [systemd-devel] Restart SystemD service when Memory Usage in More than a threshold

2023-09-18 Thread Michal Koutný
Hello Ahmad. On Sat, Sep 16, 2023 at 09:29:07PM +0600, Ahmad Ismail wrote: > The file in ~/.config/autostart which autostart the service is: ^^^ > So, I came up with a systemd service which will restart nemo-desktop when > memory usage is 100MB. Is the bug you mention a memory lea

[systemd-devel] Restart SystemD service when Memory Usage in More than a threshold

2023-09-16 Thread Ahmad Ismail
My nemo-desktop instance keeps crashing due to a bug. The file in ~/.config/autostart which autostart the service is: [Desktop Entry] Type=Application Name=Nemo Comment=Start Nemo desktop at log in Exec=nemo-desktop X-GNOME-AutoRestart=true NoDisplay=true So, I came up with a systemd service whi