about summary refs log tree commit diff
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2023-01-30 14:05:06 -0800
committerXiao Pan <gky44px1999@gmail.com>2023-01-30 14:05:06 -0800
commit856d499a522a3113394fae8521d7872c21d5bf9b (patch)
tree4b07ff683e7f9c491b2ee93f3fbbdc57e4d4880a
parentcd4c514d719af1f6e5d5a50ec472303fc167de50 (diff)
parent819af70c238cb8f51ecda83e035a347d1c0b326e (diff)
Add 'zoom-firejail/' from commit '819af70c238cb8f51ecda83e035a347d1c0b326e'
git-subtree-dir: zoom-firejail
git-subtree-mainline: cd4c514d719af1f6e5d5a50ec472303fc167de50
git-subtree-split: 819af70c238cb8f51ecda83e035a347d1c0b326e
-rw-r--r--zoom-firejail/.SRCINFO16
-rw-r--r--zoom-firejail/.gitignore3
-rw-r--r--zoom-firejail/PKGBUILD20
-rw-r--r--zoom-firejail/ZoomFirejail.desktop13
-rwxr-xr-xzoom-firejail/zoom-firejail2
-rw-r--r--zoom-firejail/zoom-firejail.install16
6 files changed, 70 insertions, 0 deletions
diff --git a/zoom-firejail/.SRCINFO b/zoom-firejail/.SRCINFO
new file mode 100644
index 0000000..9ea0be0
--- /dev/null
+++ b/zoom-firejail/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = zoom-firejail
+	pkgdesc = .desktop file for running Zoom in Firejail
+	pkgver = 0.1.7
+	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 = 88342fd5847dd58c271ea9cb2ca7c4497fba00b3ea761a8ce630e1d072a7e39c426fffe62cc5fdb6c8516a33e70dd292109c41f7d3966fee7acb78b32c3a0e6a
+	sha512sums = aea3761bd540ebe71b350a1f7fd79683080d73a1c26373ad1f91a552f5c9319665cba4e1d3bc0267bfca3f8d37598ec5077797eec43561f5f7bcd3b583df4b2a
+
+pkgname = zoom-firejail
diff --git a/zoom-firejail/.gitignore b/zoom-firejail/.gitignore
new file mode 100644
index 0000000..eb91a71
--- /dev/null
+++ b/zoom-firejail/.gitignore
@@ -0,0 +1,3 @@
+/zoom-firejail-*.pkg.*
+/pkg
+/src
diff --git a/zoom-firejail/PKGBUILD b/zoom-firejail/PKGBUILD
new file mode 100644
index 0000000..06e154c
--- /dev/null
+++ b/zoom-firejail/PKGBUILD
@@ -0,0 +1,20 @@
+# Maintainer: Excitable Snowball <excitablesnowball@gmail.com>
+
+pkgname=zoom-firejail
+pkgver=0.1.7
+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=('88342fd5847dd58c271ea9cb2ca7c4497fba00b3ea761a8ce630e1d072a7e39c426fffe62cc5fdb6c8516a33e70dd292109c41f7d3966fee7acb78b32c3a0e6a'
+            'aea3761bd540ebe71b350a1f7fd79683080d73a1c26373ad1f91a552f5c9319665cba4e1d3bc0267bfca3f8d37598ec5077797eec43561f5f7bcd3b583df4b2a')
+
+package() {
+    install -Dm755 zoom-firejail "$pkgdir"/usr/bin/zoom-firejail
+    install -Dm644 ZoomFirejail.desktop "$pkgdir"/usr/share/applications/ZoomFirejail.desktop
+}
diff --git a/zoom-firejail/ZoomFirejail.desktop b/zoom-firejail/ZoomFirejail.desktop
new file mode 100644
index 0000000..629ebce
--- /dev/null
+++ b/zoom-firejail/ZoomFirejail.desktop
@@ -0,0 +1,13 @@
+[Desktop Entry]
+Name=Zoom (Firejail)
+Comment=Zoom Video Conference
+Exec=/usr/bin/zoom-firejail %U
+Icon=Zoom
+Terminal=false
+Type=Application
+Encoding=UTF-8
+Categories=Network;Application;
+StartupWMClass=Zoom
+MimeType=x-scheme-handler/zoommtg;x-scheme-handler/zoomus;x-scheme-handler/tel;x-scheme-handler/callto;x-scheme-handler/zoomphonecall;
+X-KDE-Protocols=zoommtg;zoomus;tel;callto;zoomphonecall;
+Name[en_US]=Zoom (Firejail)
diff --git a/zoom-firejail/zoom-firejail b/zoom-firejail/zoom-firejail
new file mode 100755
index 0000000..46c3390
--- /dev/null
+++ b/zoom-firejail/zoom-firejail
@@ -0,0 +1,2 @@
+#!/bin/sh
+/usr/bin/firejail -- zoom "$@"
diff --git a/zoom-firejail/zoom-firejail.install b/zoom-firejail/zoom-firejail.install
new file mode 100644
index 0000000..02a750c
--- /dev/null
+++ b/zoom-firejail/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
+}