aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorExcitable Snowball <excitablesnowball@gmail.com>2020-05-12 12:32:43 -0700
committerExcitable Snowball <excitablesnowball@gmail.com>2020-05-12 12:36:15 -0700
commit5c1e9fb69ef94cf8e477db20604a458e7473dac0 (patch)
tree38af0fd2067beaa343496f04c4c1523d6a925e4e
parent4a6cc0053a491c25c4a3da690d7f4aaa098eb99d (diff)
0.1.4 - post-install instructions to configure DE
Chromium and some other programs use xdg-open to determine which program to use for zoommtg:// links. After installing, print out a hint explaining how to configure your desktop environment to open these links in zoom-firejail.
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD4
-rw-r--r--zoom-firejail.install16
3 files changed, 22 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4d0b26b..67eaea4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,13 @@
pkgbase = zoom-firejail
pkgdesc = .desktop file for running Zoom in Firejail
- pkgver = 0.1.3
+ pkgver = 0.1.4
pkgrel = 1
+ install = zoom-firejail.install
arch = x86_64
license = MIT
depends = zoom
depends = firejail
+ optdepends = xdg-utils
source = ZoomFirejail.desktop
source = zoom-firejail
sha512sums = 71af881f8bbb2daa7ee74b63a32ddb7e450ff6c83a0be4f054a9f4afa953f936ccb4c5f1812cae5d4317626fd222360eb10b0b48ec8876f70f74a0d804a9852a
diff --git a/PKGBUILD b/PKGBUILD
index 5610d7c..7ee9645 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,12 +1,14 @@
# Maintainer: Excitable Snowball <excitablesnowball@gmail.com>
pkgname=zoom-firejail
-pkgver=0.1.3
+pkgver=0.1.4
pkgrel=1
pkgdesc=".desktop file for running Zoom in Firejail"
arch=('x86_64')
license=('MIT')
depends=('zoom' 'firejail')
+optdepends=('xdg-utils')
+install=zoom-firejail.install
source=('ZoomFirejail.desktop'
'zoom-firejail')
sha512sums=('71af881f8bbb2daa7ee74b63a32ddb7e450ff6c83a0be4f054a9f4afa953f936ccb4c5f1812cae5d4317626fd222360eb10b0b48ec8876f70f74a0d804a9852a'
diff --git a/zoom-firejail.install b/zoom-firejail.install
new file mode 100644
index 0000000..02a750c
--- /dev/null
+++ b/zoom-firejail.install
@@ -0,0 +1,16 @@
+post_install() {
+ echo
+ echo "To configure your desktop environment to open Zoom links in Firejail, run:"
+ echo
+ for scheme in zoommtg zoomus tel callto zoomphonecall; do
+ echo "xdg-mime default ZoomFirejail.desktop x-scheme-handler/$scheme"
+ done
+ echo
+}
+
+post_upgrade() {
+ # xdg-mime instructions added in 0.1.4
+ if [ $(vercmp $2 0.1.3) -le 0 ]; then
+ post_install
+ fi
+}