-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not register signal-desktop.desktop as handler for text/html #3602
Comments
Interesting - this is not something we're doing. There's nothing having to do with 'text/html' in our |
Yeah I definitely thought it was odd too. I did some further investigation and I think this might be an issue with There could also possibly be some configuration option that electron is using that only applies to newer versions of |
Yep. v1.26.x was on Electron 4, and v1.27.x is on Electron 6. |
Okay. I just tested on 1.26.2 and could not reproduce the issue. Went back to 1.27.2 and the issue popped up again. If there were no changes in the signal app during that time that would have caused this I suggest opening a bug upstream in the electron repo to see if they can address it. Hope I've narrowed it down enough. :) |
This is happening for me in 1.27.2. Every time I open signal, it rewrites itself as my default application for opening text/html files :-/ Not just during installation. |
Reported an issue with Electron here: electron/electron#20382 |
@sunjay Can you share the contents of |
No [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
Categories=Network;InstantMessaging;Chat; |
[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
Categories=Network;InstantMessaging;Chat; |
I've straced signal and noticed that it runs
I wonder if xdg-settings get's confused about the sgnl type. It seems signal does not actually register such a mime type and maybe xdg-settings falls back to html in that case. |
There's a bunch of exploration going on in the electron/electron#20382 issue. Here's a quote of my last response from there:
I think the Signal team can fix this by renaming |
Is there a workaround for this bothering problem? Even the help of some applications opens wiht Signal! |
Until this is fixed, I've copied /usr/bin/xdg-settings to /usr/local/bin and added the following at the start of the script:
Also make sure to restore the original mime association for html files. [EDIT: this is obviously a hack, and should be removed once fixed properly] |
If you're running the beta, please update and let us know what you think! f790694 |
It looks like |
Where did you find the 1.28 deb? |
|
Just updated to 1.28.0 and this issue doesn't occur anymore 👍 |
@benjaoming I suspect that previous registrations will stay around. Updating to 1.28 will stop Signal Desktop from continuing to register itself. |
Yeah confirm you'll have to set the registrations back to their proper values manually, but for me it sticks then |
Yes, running However, the original application handler is not restored automatically, manually invoking |
@VictorKoenders and I just debugged the same thing and got similar results. |
Yeah there's no way of restoring these to previous values - the fix in 1.28 is as good as it gets |
@lgierth could do this in the Debian installer...
Test output:
|
Sure, I just meant that you have no idea which application was previously set for text/html. In my case it's |
@lgierth agreed - I would prefer for normal users to have something or nothing as a handler for text/html rather than Signal. Maybe |
I would prefer no automatic "fix-ups" of the "text/html" handler. |
Bug Description
When installing signal, it appears to register itself as the handler for all text/html files. This causes the
xdg-open
command to open signal for all HTML files. This is undesirable because signal is not actually a browser.Steps to Reproduce
xdg-mime query default text/html
signal-desktop.desktop
as shown below:Actual Result:
Running something like
xdg-open foo.html
opens Signal instead of opening a browser.Expected Result:
xdg-open
should not open Signal. Signal should not be registered as the handler fortext/html
files.Workaround
Run the following command:
You may want to change
firefox.desktop
to something else if you prefer that.Screenshots
Platform Info
Signal Version: v1.27.2
Operating System: Ubuntu Linux 64-bit (according to the website in the template)
More info:
![image](https://user-images.githubusercontent.com/530939/65103939-c9c90c80-d99d-11e9-8ade-81ff84f2e3a6.png)
Linked Device Version: N/A
Link to Debug Log
N/A
The text was updated successfully, but these errors were encountered: