From c3ce9713d920eeed95001a8f45d74eda54cf1ba5 Mon Sep 17 00:00:00 2001 From: polyfloyd Date: Fri, 28 Feb 2025 20:59:07 +0100 Subject: [PATCH] chore(etc): remove /usr/bin prefix from Linux .desktop files (#9966) Exec accepts just the program name and will look for it in $PATH. This makes these files work on NixOS which does not create a /usr/bin directory. --- etc/linux-desktop/syncthing-start.desktop | 2 +- etc/linux-desktop/syncthing-ui.desktop | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/linux-desktop/syncthing-start.desktop b/etc/linux-desktop/syncthing-start.desktop index 93111ffa5..4ba543dfe 100644 --- a/etc/linux-desktop/syncthing-start.desktop +++ b/etc/linux-desktop/syncthing-start.desktop @@ -2,7 +2,7 @@ Name=Start Syncthing GenericName=File synchronization Comment=Starts the main syncthing process in the background. -Exec=/usr/bin/syncthing serve --no-browser --logfile=default +Exec=syncthing serve --no-browser --logfile=default Icon=syncthing Terminal=false Type=Application diff --git a/etc/linux-desktop/syncthing-ui.desktop b/etc/linux-desktop/syncthing-ui.desktop index 34ad4770e..213388ba9 100644 --- a/etc/linux-desktop/syncthing-ui.desktop +++ b/etc/linux-desktop/syncthing-ui.desktop @@ -2,7 +2,7 @@ Name=Syncthing Web UI GenericName=File synchronization UI Comment=Opens Syncthing's Web UI in the default browser (Syncthing must already be started). -Exec=/usr/bin/syncthing --browser-only +Exec=syncthing --browser-only Icon=syncthing Terminal=false Type=Application