Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#69415 - [signal-desktop] URL schema sgnl is not handled
Attached to Project:
Community Packages
Opened by Hollis Wu (holi0317) - Saturday, 23 January 2021, 13:29 GMT
Last edited by kpcyrd (kpcyrd) - Sunday, 14 February 2021, 12:54 GMT
Opened by Hollis Wu (holi0317) - Saturday, 23 January 2021, 13:29 GMT
Last edited by kpcyrd (kpcyrd) - Sunday, 14 February 2021, 12:54 GMT
|
DetailsDescription:
Package signal-desktop uses the URL protocol sgnl:// (MIME type x-scheme-handler/sgnl) for handling adding stickers and more. Currently the packaged desktop entry file did not specify the application is allowed to handle that protocol. Causing browsers failed to call into signal desktop even if the application is installed. The fix is trivial. Editing the desktop entry by followings should work: 1. Change Exec= line to Exec=signal-desktop %U 2. Add line MimeType=x-scheme-handler/sgnl; Then run `sudo update-desktop-databaes`. Which should run in pacman hook if it is packaged correctly. Additional info: * package version(s): signal-desktop 1.39.6-1 Steps to reproduce: 1. Run command `xdg-open 'sgnl://addstickers/?pack_id=d0678a2671c20c9908f2bc69408ef662&pack_key=bbd42ade696d575a60fb682c2e949b7525a1b095d5c269cc234f5684c3a42522'`. It should show a dialog in signal-desktop for adding sticker. |
This task depends upon
Closed by kpcyrd (kpcyrd)
Sunday, 14 February 2021, 12:54 GMT
Reason for closing: Fixed
Additional comments about closing: 1.39.6-2
Sunday, 14 February 2021, 12:54 GMT
Reason for closing: Fixed
Additional comments about closing: 1.39.6-2
signal-desktop -- %u
Otherwise you might end up in some situations where it wont work.
I propose this as *.desktop file
```
[Desktop Entry]
Type=Application
Name=Signal
Comment=Signal - Privat Messaging
Comment[de]=Signal - Sichere Unterhaltung
Icon=signal-desktop
Exec=signal-desktop -- %u
Terminal=false
Categories=Network;InstantMessaging;
StartupWMClass=Signal
MimeType=x-scheme-handler/sgnl;
Keywords=sgnl;chat;im;messaging;messenger;sms;security;privat;
X-GNOME-UsesNotifications=true
```
It'll support sgnl-links, adds some keywords, tells gnome that it uses notifications¹ and slims down the comments. I also go for %u instead of %U, because I couldn't make it work with multiple URL² (that's what %U is for). It takes only one URL, so %u appears to be enough.
¹ https://wiki.gnome.org/Initiatives/GnomeGoals/NotificationSource
² https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html
```
[Desktop Entry]
Name=Signal
Exec=/opt/Signal/signal-desktop --no-sandbox %U
Terminal=false
Type=Application
Icon=signal-desktop
StartupWMClass=Signal
Comment=Private messaging from your desktop
MimeType=x-scheme-handler/sgnl;
Categories=Network;InstantMessaging;Chat;
```
Somehow they are doing deb packaging but ain't uploading it to github or anywhere else.
Is that --no-sandbox flag required for running signal?
https://github.com/electron/electron/issues/15760
Sadly I don't really understand that option, what the sandbox is in general and also it seems that there are no sources around for the debian package?
EDIT
on the "why": https://github.com/signalapp/Signal-Desktop/pull/4381#issuecomment-650458310