xdg-open does not open link when java is staged

Bug #1647200 reported by Matthew Aguirre
6
This bug affects 1 person
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:
      ../build/wrapper0: bin/

Here is my wrapper0 file:

#!/bin/bash

export XDG_DATA_HOME=$SNAP/usr/share
export PATH=$PATH:/usr/local/bin

xdg-open http://tros.org/torgo

Here is my output from running torgo.testsite:

dbus-send: /snap/torgo/x1/lib/x86_64-linux-gnu/libdbus-1.so.3: version `LIBDBUS_PRIVATE_1.10.6' not found (required by dbus-send)

Revision history for this message
Matthew Aguirre (matt-aguirre) wrote :
tags: added: openjdk
description: updated
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

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.

Changed in snappy:
status: New → Confirmed
importance: Undecided → Low
Michael Vogt (mvo)
affects: snappy → snapd
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.