nextcloud-client: make autostart entry start client from path

authored by

Marvin Dostal and committed by
Jonathan Ringer
52ffa1c3 afce4452

+27
+26
pkgs/applications/networking/nextcloud-client/0001-When-creating-the-autostart-entry-do-not-use-an-abso.patch
··· 1 + From bade623bb98c957d9a274df75b58296beb8ae6a7 Mon Sep 17 00:00:00 2001 2 + From: Marvin Dostal <maffinmaffinmaffinmaffin@gmail.com> 3 + Date: Sun, 17 Oct 2021 21:26:51 +0200 4 + Subject: [PATCH] When creating the autostart entry, do not use an absolute 5 + path 6 + 7 + --- 8 + src/common/utility_unix.cpp | 2 +- 9 + 1 file changed, 1 insertion(+), 1 deletion(-) 10 + 11 + diff --git a/src/common/utility_unix.cpp b/src/common/utility_unix.cpp 12 + index 010408395..16964c64f 100644 13 + --- a/src/common/utility_unix.cpp 14 + +++ b/src/common/utility_unix.cpp 15 + @@ -83,7 +83,7 @@ void setLaunchOnStartup_private(const QString &appName, const QString &guiName, 16 + ts << QLatin1String("[Desktop Entry]") << endl 17 + << QLatin1String("Name=") << guiName << endl 18 + << QLatin1String("GenericName=") << QLatin1String("File Synchronizer") << endl 19 + - << QLatin1String("Exec=\"") << executablePath << "\" --background" << endl 20 + + << QLatin1String("Exec=") << "nextcloud --background" << endl 21 + << QLatin1String("Terminal=") << "false" << endl 22 + << QLatin1String("Icon=") << APPLICATION_ICON_NAME << endl 23 + << QLatin1String("Categories=") << QLatin1String("Network") << endl 24 + -- 25 + 2.31.1 26 +
+1
pkgs/applications/networking/nextcloud-client/default.nix
··· 33 33 patches = [ 34 34 # Explicitly move dbus configuration files to the store path rather than `/etc/dbus-1/services`. 35 35 ./0001-Explicitly-copy-dbus-files-into-the-store-dir.patch 36 + ./0001-When-creating-the-autostart-entry-do-not-use-an-abso.patch 36 37 ]; 37 38 38 39 nativeBuildInputs = [