aboutsummarylogtreecommitdiffstats
path: root/bitwarden.install
diff options
context:
space:
mode:
Diffstat (limited to 'bitwarden.install')
-rw-r--r--bitwarden.install19
1 files changed, 19 insertions, 0 deletions
diff --git a/bitwarden.install b/bitwarden.install
new file mode 100644
index 000000000000..2b9cbcf0809a
--- /dev/null
+++ b/bitwarden.install
@@ -0,0 +1,19 @@
+post_install() {
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+
+ # Link to the binary
+ ln -sf '/opt/Bitwarden/bitwarden' '/usr/bin/bitwarden'
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+
+ # Delete the link to the binary
+ rm -f '/usr/bin/bitwarden'
+ update-desktop-database -q
+}