-
-
Notifications
You must be signed in to change notification settings - Fork 267
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
Internal Browser (Hints, HTML Report Preview) opens save dialogue #866
Comments
Are you running Ubuntu under X11 or Wayland? |
How would I tell? <EDIT> $ loginctl show-session $(awk '/tty/ {print $1}' <(loginctl)) -p Type | awk -F= '{print $2}' |
I think the default for Ubuntu is Wayland. You need to run Archi with |
Do you have the "Hints" tab open or closed. Hints are stored in html files like the name in your screenshot. Is it all tooltips? In the tree? On a diagram? |
Thanks for the quick feedback. The hints tab was closed. Even though the command above suggested I was running under x11, changing my desktop shortcut to run the But since you mentioned the hints tab, if I have the hints tab open the same issue occurs - this time you can see the tooltip and the |
The Hints tab is displaying a local HTML page when you hover over the palette, or select a component in the Tree or in a diagram. The Hints tab is basically an embedded WebKit browser. When it displays a hint it sets the embedded browser URL to something like As to why it is opening a save dialog I have no idea. If you can offer any further clues that would be helpful, at this stage there's nothing I can change in Archi's code. |
FWIW, I installed a fresh install of Ubuntu 22.0.4.1 and didn't see this issue. Perhaps different versions of Webkit? Configuration? Permissions? |
This was a fresh install of Ubuntu 20.04 about a month ago, although the
|
I have the same webkit versions. I start Ubuntu when logging in with the option Did you try with the Hints tab closed? It shouldn't trigger that dialog. |
Another place where the internal webkit browser (it's an Eclipse SWT Browser component) is used is in the |
I think I may have found what's happening here, assuming this only happens with Hints files: https://bugs.eclipse.org/bugs/show_bug.cgi?id=534113 It concerns the mime type of the html file which may be reported as |
Actually, the above may not be exactly correct. I was confusing Archi's help files (which use XHTML) with the Hints files which are normal HTML. But there may be a clue there. Might be worth checking mime types associations. |
You could try this command:
|
Currently:
|
Both the hints tab and the preview report use the webkit browser with a local url set to |
I don't think using |
|
Looking at the comments in https://bugs.eclipse.org/bugs/show_bug.cgi?id=534113 I traced the internal Eclipse WebKit code. It seems that a decision to either display the html file or show a download dialog is based solely on how the Eclipse code determines the mime type of the file which it queries from the system. As this issue has not been reported before it's likely that a WebKit config of mime types is different on your system. I don't know how to investigate that further. |
I'll close this one as there's nothing we can change in the Archi code. |
Version of Archi
v4.9.3
Archi Plug-ins
None
Operating System
GNU Linux Ubuntu 22.04.1 LTS
Expected Behaviour
Tooltips should pop-up when I hover over icons and objects
Actual Behaviour
A "save" window opens offering me to save the <icon-type>.html page to disk.
Steps to Reproduce the Behaviour
There are no error logs and this happens with all .archimate files.
The text was updated successfully, but these errors were encountered: