User Tools

Site Tools


pages:howtos:systemd:nextcloud-desktop

This is an old revision of the document!


Nextcloud Desktop as a user service with systemd

Since quite some time I am annoyed by the Nextcloud client starting before the internet connection becomes available. That leads to a situation in which the Nextcloud Desktop Client presents a browser window with a login mask because it assumes it is disconnected.

My approach will start and manage the Nextcloud Desktop Client as a systemd user service as soon as a network connection becomes ready.

KDE Session Management, Autostart

  • remove Nextcloud from autostart
  • tick “start with an empty session” under “Desktop Session” in System Settings

Systemd User Service

[Unit]
Description=Nextcloud Desktop Client
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
StandardOutput=journal
ExecStart=/usr/bin/nextcloud

[Install]
WantedBy=default.target

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
pages/howtos/systemd/nextcloud-desktop.1633471436.txt.gz · Last modified: 2021/10/05 22:03 by mischerh