summarylogtreecommitdiffstats
path: root/session-desktop-git.install
diff options
context:
space:
mode:
authorxXR01I1Xx2020-03-18 21:52:50 +0100
committerxXR01I1Xx2020-03-18 21:52:50 +0100
commitcd41410b8399e661dcfc53468c838bdbdb657e9b (patch)
tree615cc511d149361c8b7d6389ccc2c4d51ca1c5af /session-desktop-git.install
downloadaur-cd41410b8399e661dcfc53468c838bdbdb657e9b.tar.gz
Version: 1.0.4
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
+}