gdelmas / IntelliJDashPlugin

A smart and simple plugin that provides keyboard shortcut access for Dash, Velocity or Zeal in IntelliJ IDEA, RubyMine, WebStorm, PhpStorm, PyCharm and Android Studio.
MIT License
1.09k stars 73 forks source link

BROWSE action is not supported on the current platform error with Zeal and Debian #73

Open machinekoder opened 6 years ago

machinekoder commented 6 years ago

I get the following error message: image when I try to use the Dash plugin in CLion with Zeal under Debian.

Any ideas what could be the reason?

machinekoder commented 6 years ago

Looks like the error comes from Java: https://stackoverflow.com/questions/18004150/desktop-api-is-not-supported-on-the-current-platform

gdelmas commented 6 years ago

could this be #71

leoarnold commented 6 years ago

Got same on Kubuntu 17.10. Seems to duplicate #71 but installing libgnome2-0 sadly didn't fix it.

machinekoder commented 6 years ago

I can confirm that installing libgnome2-0 does not help.

machinekoder commented 6 years ago

I'm also using KDE 5

IGotPaws commented 6 years ago

I have KDE aswell and the same issue. No luck with libgnome2-0

gdelmas commented 6 years ago

@leoarnold @machinekoder @IGotPaws have you tried installing libgnome 1.

machinekoder commented 6 years ago

@gdelmas Yes, libgnome-2-0. Note there is no libgnome on Debian

leoarnold commented 6 years ago

The relevant file here might be libgnome-2.so which comes with the package libgnome2-dev, yet that did not work for me either.

leoarnold commented 6 years ago

URL handling is registered correctly:

$ xdg-mime query default x-scheme-handler/dash-plugin
zeal.desktop

and

$ xdg-open dash-plugin://test

will launch Zeal as desired, so this is definitely somewhere in the Java

leoarnold commented 6 years ago

@gdelmas Would it be a viable option to drop usage of the Desktop API and go native instead like this? https://stackoverflow.com/a/18004334

machinekoder commented 6 years ago

@leoarnold I'm all in favor of that. The official Java desktop API seems to be broken or outdated for everything other than GNOME2.

gdelmas commented 6 years ago

as this appears to become more and more of a problem for several users surely there must be some solution. not sure if the stack overflow solution might create more problems. we had a direct call to zeal before. maybe we should revert this: https://github.com/gdelmas/IntelliJDashPlugin/commit/df176d8c304b794b8e57876a2c3d2d6d1b13b225

gdelmas commented 6 years ago

just re-read the issue. zeal dropped support for --query so i guess this would not be a viable option.

machinekoder commented 6 years ago

@gdelmas Maybe contact the JetBrains guys? I mean they must have some open system link functionality somewhere in the IDE.

gdelmas commented 6 years ago

good idea. i'll ask them

machinekoder commented 6 years ago

@gdelmas Any news on this topic?

gdelmas commented 5 years ago

unfortunately not

MateuszKowalewski commented 5 years ago

It would be nice if this plugin would work on Linux.

A direct call should be fine. Zeal dropped the --query param, right. Instead it works just without it now!

$ zeal _SEARCH URL_ opens the doc browser from the command line.

Reverting df176d8 and removing line 36 in ZealLauncher.java should fix this issue most likely.

des-mbischof commented 4 years ago

It's not a solution but at least a workaround: installing version 3.2.5 worked for me.

nre-ableton commented 4 years ago

bump -- is there any update on this issue? I'd really love to see it fixed. If the solution proposed by @MateuszKowalewski is feasible, I'd be happy to submit a PR.

gdelmas commented 4 years ago

@nre-ableton can you verify that what we were passing to zeal in the query param works without it as well please.

i guess it would be nice to still use the registered handler on systems that support that, but maybe we can fallback to just calling zeal. i guess the detection of the registered handler might be tricky as well. so maybe just falling back on the command line if an error is thrown might be good enough.

what do you think?

nre-ableton commented 4 years ago

@gdelmas I'm not exactly sure how to verify this, but I can verify that calling zeal test from the command line will open zeal with "test" as the search parameter. Likewise, calling xdg-open dash-plugin://test will open zeal, but with no query.

Is there something else you'd like me to test specifically?

emcek commented 2 years ago

same here:

Operating System: Garuda Linux
KDE Plasma Version: 5.24.3
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.3
Kernel Version: 5.16.12-zen1-1-zen (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i5-6200U CPU @ 2.30GHz
Memory: 15,4 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 520

Any chance to fix this any time soon :/

Upgreydd commented 1 year ago

Have the same error - it looks like KDE is the problem. Can we call zeal some other way?