IntelliJDashPlugin icon indicating copy to clipboard operation
IntelliJDashPlugin copied to clipboard

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

Open machinekoder opened this issue 6 years ago • 25 comments

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 avatar May 31 '18 13:05 machinekoder

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

machinekoder avatar May 31 '18 13:05 machinekoder

could this be #71

gdelmas avatar Jun 05 '18 18:06 gdelmas

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

leoarnold avatar Jun 06 '18 12:06 leoarnold

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

machinekoder avatar Jun 07 '18 06:06 machinekoder

I'm also using KDE 5

machinekoder avatar Jun 07 '18 06:06 machinekoder

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

IGotPaws avatar Jun 09 '18 07:06 IGotPaws

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

gdelmas avatar Jun 09 '18 19:06 gdelmas

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

machinekoder avatar Jun 10 '18 07:06 machinekoder

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 avatar Jun 11 '18 12:06 leoarnold

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 avatar Jun 11 '18 12:06 leoarnold

@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

leoarnold avatar Jun 11 '18 12:06 leoarnold

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

machinekoder avatar Jun 11 '18 12:06 machinekoder

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 avatar Jul 01 '18 19:07 gdelmas

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

gdelmas avatar Jul 01 '18 19:07 gdelmas

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

machinekoder avatar Jul 02 '18 16:07 machinekoder

good idea. i'll ask them

gdelmas avatar Jul 02 '18 17:07 gdelmas

@gdelmas Any news on this topic?

machinekoder avatar Aug 01 '18 09:08 machinekoder

unfortunately not

gdelmas avatar Sep 24 '18 21:09 gdelmas

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.

MateuszKowalewski avatar Nov 03 '18 22:11 MateuszKowalewski

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

des-mbischof avatar Jun 25 '20 05:06 des-mbischof

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.

nre-ableton avatar Sep 03 '20 08:09 nre-ableton

@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?

gdelmas avatar Sep 03 '20 22:09 gdelmas

@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?

nre-ableton avatar Sep 04 '20 07:09 nre-ableton

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 :/

emcek avatar Mar 13 '22 10:03 emcek

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

Upgreydd avatar Nov 04 '22 12:11 Upgreydd