mirror of
https://github.com/LukeHagar/omarchy.git
synced 2025-12-06 12:37:46 +00:00
* Support for exec and mime types. Zoom integration
In order to better support webapp zoom:
- Added optional params for omarchy-webapp-install
- exec, defaults to omarchy-launch-webapp
- mimetypes, defaults blank
- added zoom webapp launcher that parses meeting links and transforms
them and calls launch webapp to join meeting links
- migration to convert existing zoom installs to the new custom
handler
- updated the base installer to call new zoom handler and set
mimetypes
* default should be in the else
* Add new line at end of file
* Missed new line on migration
* Updated conditionals to be a little more clean
* This is a rare setup so let's just save it for the direct CLI
* Use new bash conditionals
* Rename to fit under the existing namespace of cmds
* Fix after merge
* Use new syntax and add missing segment comments
* Cleanup a bit
* Use local icon for zoom with migration
* Fix regexp
* Refer to raw local icon references
---------
Co-authored-by: David Heinemeier Hansson <david@hey.com>
21 lines
464 B
Bash
Executable File
21 lines
464 B
Bash
Executable File
#!/bin/bash
|
|
|
|
url="$1"
|
|
web_url="https://app.zoom.us/wc/home"
|
|
|
|
if [[ $url =~ ^zoom(mtg|us):// ]]; then
|
|
confno=$(echo "$url" | sed -n 's/.*[?&]confno=\([^&]*\).*/\1/p')
|
|
|
|
if [[ -n $confno ]]; then
|
|
pwd=$(echo "$url" | sed -n 's/.*[?&]pwd=\([^&]*\).*/\1/p')
|
|
|
|
if [[ -n $pwd ]]; then
|
|
web_url="https://app.zoom.us/wc/join/$confno?pwd=$pwd"
|
|
else
|
|
web_url="https://app.zoom.us/wc/join/$confno"
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
exec omarchy-launch-webapp "$web_url"
|