aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorSimon Frei <freisim93@gmail.com>2018-10-20 08:25:59 +0200
committerGitHub <noreply@github.com>2018-10-20 08:25:59 +0200
commitc0be9987d07df3aa818f4573bef4235c5f59891b (patch)
tree329bd67431190f2646a5425879554e5442a42601 /etc
parentc1f1fd71fe18d242747dfba89d9eb1bc93a0efd3 (diff)
downloadsyncthing-c0be9987d07df3aa818f4573bef4235c5f59891b.tar.gz
syncthing-c0be9987d07df3aa818f4573bef4235c5f59891b.zip
build: Add desktop files and icons to .deb (fixes #3439) (#5277)
Diffstat (limited to 'etc')
-rw-r--r--etc/linux-desktop/README.md12
-rw-r--r--etc/linux-desktop/syncthing-start.desktop9
-rw-r--r--etc/linux-desktop/syncthing-ui.desktop9
3 files changed, 30 insertions, 0 deletions
diff --git a/etc/linux-desktop/README.md b/etc/linux-desktop/README.md
new file mode 100644
index 000000000..ee72b3c91
--- /dev/null
+++ b/etc/linux-desktop/README.md
@@ -0,0 +1,12 @@
+# Desktop Entries
+
+This directory contains files to integrate Syncthing in your desktop environment (DE).
+Specifically this works for DEs that implement the [XDG Desktop Menu Specification][1], which
+is virtually every DE.
+To add Syncthing to desktop menus for all users, copy the `.desktop` files to
+`/usr/local/share/applications` (root required). To add it for just your user, copy them to `~/.local/share/applications`.
+To start Syncthing automatically, you have two options: Either you go to the autostart settings of your DE and choose Syncthing or you copy the `syncthing-start.desktop` file to `~/.config/autostart`.
+For more information refer to the [ArchWiki page on Desktop entries][2]
+
+[1]: https://specifications.freedesktop.org/menu-spec/menu-spec-latest.html
+[2]: https://wiki.archlinux.org/index.php/Desktop_entries
diff --git a/etc/linux-desktop/syncthing-start.desktop b/etc/linux-desktop/syncthing-start.desktop
new file mode 100644
index 000000000..8093066fd
--- /dev/null
+++ b/etc/linux-desktop/syncthing-start.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Start Syncthing
+GenericName=File synchronization
+Comment=Starts the main syncthing process in the background.
+Exec=/usr/bin/syncthing -no-browser
+Icon=syncthing
+Terminal=false
+Type=Application
+Categories=Network;FileTransfer;P2P
diff --git a/etc/linux-desktop/syncthing-ui.desktop b/etc/linux-desktop/syncthing-ui.desktop
new file mode 100644
index 000000000..a6eb704b9
--- /dev/null
+++ b/etc/linux-desktop/syncthing-ui.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+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
+Icon=syncthing
+Terminal=false
+Type=Application
+Categories=Network;FileTransfer;P2P