archimatetool / archi

Archi: ArchiMate Modelling Tool
https://www.archimatetool.com
MIT License
916 stars 267 forks source link

Problems Opening Link: unable to open web browser {0] #879

Closed pi4630 closed 1 year ago

pi4630 commented 1 year ago

Error does not appear in archi error.log.

Version of Archi

4.10.0

Archi Plug-ins

Operating System

Linux, Ubuntu 20.04 LTS. Using google-chrome-stable as web browser.

Expected Behaviour

When I click on URLs from within archi, I'd like archi to open my system web browser with that URL. (I use URLs in value fields in properties).

Actual Behaviour

When I double click on the world icon, I get an error message: Title "Problems Opening Lik" and detail "Unable to open web browser on {0}

Steps to Reproduce the Behaviour

  1. Draw any object from palette into a view
  2. Under "Properties" of that object, enter any name in Name and an URL in the Value field
  3. Try to click on the world icon that appears Auswahl_981
Phillipus commented 1 year ago

This will be something to do with the Linux configuration of webkit as that's the underlying browser used by Eclipse. Nothing I can change on our side. Please investigate your Linux setup.

Phillipus commented 1 year ago

What is the URL that you are trying to open?

Phillipus commented 1 year ago

See:

https://www.eclipse.org/forums/index.php/t/154955/ https://github.com/archimatetool/archi/issues/866#issuecomment-1235715505 https://bugs.eclipse.org/bugs/show_bug.cgi?id=534113

pi4630 commented 1 year ago

Thank you for your efforts. I'll look into it and get back to you when I've found a solution. Yes, I don't have this problem on macOS.

pi4630 commented 1 year ago

I tried my eclipse 2022-06 IDE instance. The webbrowser is recognized fine, and whenever I create a HTML page and choose to open it with "Open With Webbrowser", Chrome pops up and shows the page. Some screenshot:

Can it be that some underlying eclipse library/config is missing from within the archi tool? The archi Edit->Preferences->General don't show webbrowser recognition, like in the eclipse case. Auswahl_984 Auswahl_982

Phillipus commented 1 year ago

Archi doesn't do anything special, it calls the system browser:

https://github.com/archimatetool/archi/blob/40996e3af5f55235718514d5464bca9aa0bd49e5/com.archimatetool.editor/src/com/archimatetool/editor/utils/HTMLUtils.java#L65-L70

pi4630 commented 1 year ago

Okay, I will check with the eclipse rcp forum and report back. Current version in 4.10.0 is Eclipse RCP 4.25.0.v20220831-1800 org.eclipse.rcp.

Phillipus commented 1 year ago

I think the reason is as described here:

https://www.eclipse.org/forums/index.php?t=msg&th=154955&goto=489201&#msg_489201

Phillipus commented 1 year ago

The archi Edit->Preferences->General don't show webbrowser recognition, like in the eclipse case.

Eclipse has a preference page to set the external browser. Archi doesn't include the plug-in that contains this preference page (org.eclipse.ui.browser). It is possible that we could do this. I'll investigate if there are any overheads or unwanted dependencies.

pi4630 commented 1 year ago

Thank you . yes, that would be a feature request :) I hope there is no regression.

Phillipus commented 1 year ago

The Web preference will be in Archi 5

pi4630 commented 1 year ago

Thanks a lot, will look into it!

damobrisbane commented 10 months ago

On linux I fixed issue by adding link to my browser, ie:

sudo ln -s /usr/bin/google-chrome /usr/bin/mozilla

ref: https://stackoverflow.com/questions/6269748/using-firefox-in-eclipse-instead-of-ie