[SRU] Cannot open a browser link from a snap that provides a link
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Triaged
|
High
|
Unassigned | ||
snapd-xdg-open (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Fix Released
|
Medium
|
Unassigned |
Bug Description
[Impact]
Links in snaps cannot be opened on the host.
[Test Case]
Steps to reproduce:
- Run `sudo snap install telegram-
- Launch telegram-
- Receive a link
- Try an open the link.
The reason for it not working is that there is no browser in ubuntu-core and there is no handler that knows how to redirect this to the classic Ubuntu instance.
[Regression Potential]
* The fix is a new package to be pulled in by snapd, so there is little risk of regression
[Other Info]
* snapd-xdg-open is just one piece of two that are needed to fix this bug. The other piece is a fake xdg-open script that is available in the OS snap, which simply makes a D-Bus method invocation to the service in snapd-xdg-open
Changed in snappy: | |
status: | New → Confirmed |
Changed in snappy: | |
importance: | Undecided → High |
status: | Confirmed → Triaged |
tags: | added: snap-desktop-issue |
description: | updated |
Changed in snapd-xdg-open (Ubuntu Xenial): | |
importance: | Undecided → Medium |
Changed in snapd-xdg-open (Ubuntu): | |
importance: | Undecided → Medium |
tags: | added: xenial yakkety |
Changed in snapd-xdg-open (Ubuntu): | |
status: | Confirmed → Fix Released |
affects: | snappy → snapd |
Here is a strawman proposal:
- we add a small url-helper to ubuntu-core that contains "dbus-send --session snappy-url-helper $url"
- the snap needs to call "url-helper" (we could also call it xdg-open) when opening a url
- as part of the snapd deb (or as a dependency) we have a small dbus service on the host fs that listens to these dbus-send events and that proxies the url open requests (directly or via a window popup)