diff --git a/desktop/package/linux/org.onionshare.OnionShare.desktop b/desktop/package/linux/org.onionshare.OnionShare.desktop
deleted file mode 100644
index 190e2f26..00000000
--- a/desktop/package/linux/org.onionshare.OnionShare.desktop
+++ /dev/null
@@ -1,18 +0,0 @@
-[Desktop Entry]
-Name=OnionShare
-GenericName=OnionShare Client
-Comment=Share a file securely and anonymously over Tor
-Comment[da]=Del en fil sikkert og anonymt over Tor
-Comment[de]=Teile Dateien sicher und anonym über das Tor-Netzwerk
-Comment[hr]=Dijeli datoteku sigurno i anonimno preko Tora
-Exec=onionshare-gui
-Terminal=false
-Type=Application
-Icon=org.onionshare.OnionShare
-Categories=Network;FileTransfer;
-Keywords=tor;anonymity;privacy;onion service;file sharing;file hosting;
-Keywords[da]=tor;anonymitet;privatliv;onion-tjeneste;fildeling;filhosting;
-Keywords[de]=tor;Anonymität;Privatsphäre;Onion-Service;File-Sharing;File-Hosting;
-Keywords[hr]=tor;anonimnost;privatnost;Onion usluga;dijeljenje datoteka;hosting datoteka;
-StartupNotify=true
-StartupWMClass=onionshare
diff --git a/desktop/src/org.onionshare.OnionShare.desktop b/desktop/src/org.onionshare.OnionShare.desktop
new file mode 100644
index 00000000..479dd395
--- /dev/null
+++ b/desktop/src/org.onionshare.OnionShare.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=OnionShare
+Exec=onionshare
+Terminal=false
+Type=Application
+Icon=org.onionshare.OnionShare
+Categories=Network;FileTransfer;
+Keywords=tor;anonymity;privacy;onion service;file sharing;file hosting;
+StartupNotify=true
+StartupWMClass=onionshare
diff --git a/desktop/src/org.onionshare.OnionShare.svg b/desktop/src/org.onionshare.OnionShare.svg
new file mode 100644
index 00000000..502da0d8
--- /dev/null
+++ b/desktop/src/org.onionshare.OnionShare.svg
@@ -0,0 +1,2154 @@
+
+
+
+
+
+
+
+
+
+
+]>
+
diff --git a/desktop/src/setup.py b/desktop/src/setup.py
index eb09c101..b4e544ca 100644
--- a/desktop/src/setup.py
+++ b/desktop/src/setup.py
@@ -19,7 +19,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see .
"""
-# This setup.py file is used for flatpak packaging. For other packaging,
+# This setup.py file is used for snap and flatpak packaging. For other packaging,
# OnionShare uses briefcase.
import os
diff --git a/flatpak/org.onionshare.OnionShare.yaml b/flatpak/org.onionshare.OnionShare.yaml
index 4553a61b..9b2aac17 100644
--- a/flatpak/org.onionshare.OnionShare.yaml
+++ b/flatpak/org.onionshare.OnionShare.yaml
@@ -116,6 +116,8 @@ modules:
build-commands:
- python3 setup.py install --prefix=${FLATPAK_DEST}
- install -D -m0644 org.onionshare.OnionShare.appdata.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.appdata.xml
+ - install -D -m0644 org.onionshare.OnionShare.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/org.onionshare.OnionShare.svg
+ - install -D -m0644 org.onionshare.OnionShare.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop
sources:
- type: dir
path: ../desktop/src
diff --git a/snap/gui/onionshare.desktop b/snap/gui/onionshare.desktop
new file mode 100644
index 00000000..16b86d42
--- /dev/null
+++ b/snap/gui/onionshare.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=OnionShare
+Exec=onionshare
+Terminal=false
+Type=Application
+Icon=${SNAP}/meta/gui/onionshare.svg
+Categories=Network;FileTransfer;
+Keywords=tor;anonymity;privacy;onion service;file sharing;file hosting;
+StartupNotify=true
+StartupWMClass=onionshare
diff --git a/snap/gui/onionshare.svg b/snap/gui/onionshare.svg
new file mode 100644
index 00000000..502da0d8
--- /dev/null
+++ b/snap/gui/onionshare.svg
@@ -0,0 +1,2154 @@
+
+
+
+
+
+
+
+
+
+
+]>
+