Skip to content
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

Ensure paradoxBrowse works on Linux #361

Merged
merged 1 commit into from
Sep 9, 2019
Merged

Conversation

jroper
Copy link
Member

@jroper jroper commented Sep 9, 2019

Documentation on exactly which platforms the AWT Desktop API works on is scarce, I read it's supposed to work on Gnome (and nothing else on Linux), but I'm using Gnome, and it doesn't work. This change falls back to using xdg-open if the XDG_CURRENT_DESKTOP environment variable is set, this should work on any desktop environment that supports the XDG standard, this includes Gnome, KDE, Unity, Xfce etc etc, so has much better support than the AWT Desktop API.

Also, this change also checks if the AWT Desktop API supports the AWT browse command. Apparently on some Linux platforms, the Desktop API is supported but browse isn't.

Documentation on exactly which platforms the AWT Desktop API works on is
scarce, I read it's supposed to work on Gnome (and nothing else on
Linux), but I'm using Gnome, and it doesn't work. This change falls back
to using `xdg-open` if the `XDG_CURRENT_DESKTOP` environment variable is
set, this should work on any desktop environment that supports the [XDG
standard](https://www.freedesktop.org/wiki/Software/xdg-utils/), this
includes Gnome, KDE, Unity, Xfce etc etc, so has much better support
than the AWT Desktop API.

Also, this change also checks if the AWT Desktop API supports the AWT
browse command. Apparently on some Linux platforms, the Desktop API is
supported but browse isn't.
Copy link
Member

@ennru ennru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great fix. It's time to get out of AWT classes...

Copy link
Contributor

@raboof raboof left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works on my machine (debian linux)

@raboof raboof merged commit 260c82a into lightbend:master Sep 9, 2019
@jroper jroper deleted the browse-linux branch September 9, 2019 10:51
@pyoio pyoio added this to the 0.6.5 milestone Sep 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants