feat(desktop): open tel: links in tüit X
xdg handler for tel:/callto: that hands the number to the tüit X relay page in the running Firefox. It only fills the dial field. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8256c5e7ed
commit
69f986ba17
2 files changed
+15
No files matched your search
Executable
+6
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# Hand a tel: link to tüit X. /telefon/tel only fills the dial field,
|
||||||
|
# it never dials by itself. Plain firefox reuses the running instance.
|
||||||
|
[ -n "$1" ] || exit 0
|
||||||
|
enc=$(printf '%s' "$1" | python3 -I -c 'import sys,urllib.parse;print(urllib.parse.quote(sys.stdin.read(),safe=""))')
|
||||||
|
exec firefox "https://tueit-x.int.tueit.de/telefon/tel?nummer=$enc"
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Type=Application
|
||||||
|
Name=tüit X Telefon
|
||||||
|
Comment=tel:-Links in tüit X öffnen
|
||||||
|
Exec=/home/templis/.local/bin/tueitx-tel %u
|
||||||
|
Icon=call-start
|
||||||
|
Terminal=false
|
||||||
|
NoDisplay=true
|
||||||
|
MimeType=x-scheme-handler/tel;x-scheme-handler/callto;
|
||||||
Reference in new issue
Block a user