From 146c93c6c69a2fd84cfd62a9433916685fced9ef Mon Sep 17 00:00:00 2001 From: Fabio Scotto di Santolo Date: Sun, 1 Nov 2026 19:07:48 +0100 Subject: [PATCH] Deploy the Nextcloud desktop autostart entry on GNOME desktops Add the XDG autostart entry captured from ikaros' live session and ship it through a new desktop_gnome_dotfiles list, which the GNOME dotfile copy task merges with desktop_common_dotfiles. The list is GNOME-specific on purpose: desktop_common_dotfiles is shared with the Void minimal desktops, where nextcloud-client is not installed. Installation itself already comes from fedora_desktop_packages, which covers ikaros and nymph through the graphical_desktop group. --- ansible/inventory/group_vars/desktop_gnome.yml | 10 ++++++++++ ansible/roles/profile_desktop_gnome/tasks/main.yml | 2 +- dotfiles/desktop/.config/autostart/Nextcloud.desktop | 11 +++++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 dotfiles/desktop/.config/autostart/Nextcloud.desktop diff --git a/ansible/inventory/group_vars/desktop_gnome.yml b/ansible/inventory/group_vars/desktop_gnome.yml index 95fac62..5fdb1d6 100644 --- a/ansible/inventory/group_vars/desktop_gnome.yml +++ b/ansible/inventory/group_vars/desktop_gnome.yml @@ -91,3 +91,13 @@ fedora_flatpak_packages: - com.spotify.Client - org.onlyoffice.desktopeditors - org.telegram.desktop + +# GNOME-only dotfiles. Kept out of desktop_common_dotfiles so the Void desktops +# do not receive XDG autostart entries for applications they do not install. +# Nextcloud desktop is the `nextcloud-client` package in fedora_desktop_packages; +# this entry matches what the client itself writes when "Launch on startup" is on. +desktop_gnome_dotfiles: + - name: Nextcloud autostart entry + src: .config/autostart/Nextcloud.desktop + dest: .config/autostart/Nextcloud.desktop + mode: "0644" diff --git a/ansible/roles/profile_desktop_gnome/tasks/main.yml b/ansible/roles/profile_desktop_gnome/tasks/main.yml index 345390e..ebb4010 100644 --- a/ansible/roles/profile_desktop_gnome/tasks/main.yml +++ b/ansible/roles/profile_desktop_gnome/tasks/main.yml @@ -41,7 +41,7 @@ owner: "{{ username }}" group: "{{ user_group }}" mode: "{{ item.mode }}" - loop: "{{ desktop_common_dotfiles | default([]) }}" + loop: "{{ (desktop_common_dotfiles | default([])) + (desktop_gnome_dotfiles | default([])) }}" loop_control: label: "{{ item.dest }}" diff --git a/dotfiles/desktop/.config/autostart/Nextcloud.desktop b/dotfiles/desktop/.config/autostart/Nextcloud.desktop new file mode 100644 index 0000000..219765f --- /dev/null +++ b/dotfiles/desktop/.config/autostart/Nextcloud.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Name=Nextcloud +GenericName=File Synchronizer +Exec="/usr/bin/nextcloud" --background +Terminal=false +Icon=Nextcloud +Categories=Network +Type=Application +StartupNotify=false +X-GNOME-Autostart-enabled=true +X-GNOME-Autostart-Delay=10