<div dir="ltr"><br><br>My nemo-desktop instance keeps crashing due to a bug.<br><br>The file in ~/.config/autostart which autostart the service is:<br><br>[Desktop Entry]<br>Type=Application<br>Name=Nemo<br>Comment=Start Nemo desktop at log in<br>Exec=nemo-desktop<br>X-GNOME-AutoRestart=true<br>NoDisplay=true<br><br>So, I came up with a systemd service which will restart nemo-desktop when memory usage is 100MB.<br><br>sudo tee /etc/systemd/system/nemo-desktop-bug-workaround.service << END<br>[Unit]<br>Description=Nemo Desktop Bug Workaround<br>Wants=xdg-desktop-autostart.target<br>PartOf=graphical-session.target<br>BindsTo=graphical-session.target<br><br>[Service]<br>User=ismail<br>Group=ismail<br>Type=forking<br>StartLimitIntervalSec=3<br>ExecStart=/usr/bin/nemo-desktop<br>ExecStop=/usr/bin/nemo-desktop --quit<br>MemoryAccounting=true<br># MemoryHigh=50000K<br>MemoryMax=100000K<br>Restart=always<br>KillMode=process<br><br>[Install]<br>WantedBy=graphical.target<br>END<br><br>systemctl daemon-reload<br>systemctl start nemo-desktop-bug-workaround.service<br>systemctl enable nemo-desktop-bug-workaround.service<br><br>Now the problem is, it crashes with the terminal emulators.<br><br>What am I doing wrong here?<br></div>