xdg-open does not open link when java is staged
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Confirmed
|
Low
|
Unassigned |
Bug Description
I have not been able to use xdg-open to open up a link in an application in yakkety.
1) One thing is that xdg-open is in /usr/local/bin in the ubuntu-core snap and isn't in the default path for a snap package.
2) If I add the openjdk-8-jre package as a stage-package, xdg-open no longer works.
name: torgo
version: 1.3.2
summary: A Logo interpreter written in Java.
description: A Logo interpreter written in Java.
grade: stable
confinement: strict
apps:
testsite:
command: bin/wrapper0
plugs: [home, x11, opengl, unity7]
torgo-files:
plugin: dump
source: .
stage-packages:
- openjdk-8-jre
organize:
.
Here is my wrapper0 file:
#!/bin/bash
export XDG_DATA_
export PATH=$PATH:
xdg-open http://
Here is my output from running torgo.testsite:
dbus-send: /snap/torgo/
Looking at the current state of things:
1) The special implementation of xdg-open is in /usr/bin/xdg-open now
2) Perhaps java is pulling in the "real" xdg-open which is clashing.
Perhaps as a way out of this issue, xdg-open should be upstreamed and merged with the regular version. If operation in snaps is detected it could simply use the IPC mechanism.
I think this is something for either foundations or snapd to investigate, marking as confirmed.