IntelliJDashPlugin
IntelliJDashPlugin copied to clipboard
BROWSE action is not supported on the current platform error with Zeal and Debian
I get the following error message:
when I try to use the Dash plugin in CLion with Zeal under Debian.
Any ideas what could be the reason?
Looks like the error comes from Java: https://stackoverflow.com/questions/18004150/desktop-api-is-not-supported-on-the-current-platform
could this be #71
Got same on Kubuntu 17.10. Seems to duplicate #71 but installing libgnome2-0
sadly didn't fix it.
I can confirm that installing libgnome2-0
does not help.
I'm also using KDE 5
I have KDE aswell and the same issue. No luck with libgnome2-0
@leoarnold @machinekoder @IGotPaws have you tried installing libgnome
1.
@gdelmas Yes, libgnome-2-0
. Note there is no libgnome
on Debian
The relevant file here might be libgnome-2.so
which comes with the package libgnome2-dev
, yet that did not work for me either.
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
@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 I'm all in favor of that. The official Java desktop API seems to be broken or outdated for everything other than GNOME2.
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
just re-read the issue. zeal dropped support for --query
so i guess this would not be a viable option.
@gdelmas Maybe contact the JetBrains guys? I mean they must have some open system link functionality somewhere in the IDE.
good idea. i'll ask them
@gdelmas Any news on this topic?
unfortunately not
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.
It's not a solution but at least a workaround: installing version 3.2.5 worked for me.
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 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 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?
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 :/
Have the same error - it looks like KDE is the problem. Can we call zeal some other way?