User Tools

Site Tools


pages:howtos:systemd:nextcloud-desktop

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
pages:howtos:systemd:nextcloud-desktop [2021/10/07 10:23] mischerhpages:howtos:systemd:nextcloud-desktop [2021/12/09 23:34] (current) rokkitlawnchair
Line 1: Line 1:
-{{tag>opensuse tumbleweed systemd howto nextclouddesktopclient suse nextcloud kde session}}+{{tag>tumbleweed systemd howto nextclouddesktopclient suse nextcloud kde session}}
 ====== Nextcloud Desktop as a user service with systemd ====== ====== Nextcloud Desktop as a user service with systemd ======
   * https://blog.victormendonca.com/2018/05/14/creating-a-simple-systemd-user-service/   * https://blog.victormendonca.com/2018/05/14/creating-a-simple-systemd-user-service/
Line 10: Line 10:
   * https://www.unixsysadmin.com/systemd-user-services/   * https://www.unixsysadmin.com/systemd-user-services/
   * https://www.linuxquestions.org/questions/linux-desktop-74/start-gui-application-from-systemd-unit-service-4175591018/   * https://www.linuxquestions.org/questions/linux-desktop-74/start-gui-application-from-systemd-unit-service-4175591018/
 +  * https://www.makeuseof.com/what-is-systemd-launch-programs-raspberry-pi/
 +  * https://blog.svedr.in/posts/running-the-nextcloud-client-under-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. 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. My approach will start and manage the Nextcloud Desktop Client as a systemd user service as soon as a network connection becomes ready.
 +
 +<WRAP center round important 60%>
 +This is working on openSUSE Tumbleweed with KDE as of 2021/10/13. On other operating systems your mileage may vary.
 +</WRAP>
 +
  
 ===== KDE Session Management, Autostart ===== ===== KDE Session Management, Autostart =====
Line 40: Line 47:
 Description=Nextcloud Desktop Client Description=Nextcloud Desktop Client
 After=network-online.target After=network-online.target
-Wants=network-online.target+Wants=network-online.target NetworkManager-wait-online.service
  
 [Service] [Service]
-Type=simple+Type=simple      
 StandardOutput=journal StandardOutput=journal
 ExecStart=/usr/bin/nextcloud ExecStart=/usr/bin/nextcloud
-Environment=Display=:0 +Restart=on-failure 
-Environment=XAUTHORITY/home/def/.Xauthority +RestartSec=5s 
-Restart=always +LimitNOFILE=65535:65535
  
 [Install] [Install]
 WantedBy=default.target WantedBy=default.target
 +
 </sxh> </sxh>
  
Line 70: Line 77:
 </sxh> </sxh>
    
 +---- 
 +~~DISCUSSION~~
pages/howtos/systemd/nextcloud-desktop.1633602222.txt.gz · Last modified: 2021/10/07 10:23 by mischerh