summarylogtreecommitdiffstats
path: root/session-desktop-git.install
diff options
context:
space:
mode:
Diffstat (limited to 'session-desktop-git.install')
-rw-r--r--session-desktop-git.install15
1 files changed, 15 insertions, 0 deletions
diff --git a/session-desktop-git.install b/session-desktop-git.install
new file mode 100644
index 00000000000..119e061e79b
--- /dev/null
+++ b/session-desktop-git.install
@@ -0,0 +1,15 @@
+post_install() {
+ sudo ln -sf /opt/Session/session-messenger-desktop /usr/bin/session-messenger-desktop
+ sudo update-mime-database /usr/share/mime
+ sudo update-desktop-database /usr/share/applications
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ sudo rm -f '/usr/bin/session-messenger-desktop'
+ sudo update-mime-database /usr/share/mime
+ sudo update-desktop-database /usr/share/applications
+}