Bug 577124 - Trying to open a html file with the system web browser results env: »/home/vogella/test/lars/test.html“: Keine Berechtigung
Summary: Trying to open a html file with the system web browser results env: »/home/v...
Status: RESOLVED NOT_ECLIPSE
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.22   Edit
Hardware: PC Linux
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 577082 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-11-08 03:56 EST by Lars Vogel CLA
Modified: 2021-11-11 04:20 EST (History)
4 users (show)

See Also:


Attachments
Screenshot (207.25 KB, image/png)
2021-11-09 10:44 EST, Lars Vogel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Vogel CLA 2021-11-08 03:56:28 EST
To test: ensure that General -> Web browser is set to use external browser -> Default system web browser.

Create  a new project and create a new html file. Try to open it and you receive:

---------
env: »/home/vogella/test/lars/test.html“: Keine Berechtigung
---------

Tested Eclipse SDK
Version: 2021-12 (4.22)
Build id: I20211107-1800
OS: Linux, v.5.11.0-38-generic, x86_64 / gtk 3.24.25, WebKit 2.34.1
Java vendor: Eclipse Adoptium
Java runtime version: 17+35
Java version: 17
Comment 1 Lars Vogel CLA 2021-11-08 03:57:00 EST
*** Bug 577082 has been marked as a duplicate of this bug. ***
Comment 2 Andrey Loskutov CLA 2021-11-08 15:33:49 EST
Isn't this a blocker for switching default for using external browser instead of internal one?
Comment 3 Lars Vogel CLA 2021-11-08 17:13:30 EST
(In reply to Andrey Loskutov from comment #2)
> Isn't this a blocker for switching default for using external browser
> instead of internal one?

I think in general this is a blocker
Comment 4 Lars Vogel CLA 2021-11-09 02:56:11 EST
Niraj, can you have a look?
Comment 5 Alexander Kurtakov CLA 2021-11-09 04:02:12 EST
I can't reproduce on my Fedora 35 using Firefox configured as external browser.
Comment 6 Alexander Kurtakov CLA 2021-11-09 04:04:05 EST
As it's External browser and not build-in swt widget this is not SWT problem but UI one as this is where integration with External browser is done.
Comment 7 Alexander Kurtakov CLA 2021-11-09 04:06:29 EST
Lars, what do you see on the Web browser preference page? Can you try clicking "Detect" button? Switch between detected browsers and retry?
Comment 8 Andrey Loskutov CLA 2021-11-09 05:12:52 EST
(In reply to Alexander Kurtakov from comment #5)
> I can't reproduce on my Fedora 35 using Firefox configured as external
> browser.

Also works for me on RHEL 7.4 / Vivaldi.
Comment 9 Lars Vogel CLA 2021-11-09 05:15:56 EST
(In reply to Alexander Kurtakov from comment #7)
> Lars, what do you see on the Web browser preference page? Can you try
> clicking "Detect" button? Switch between detected browsers and retry?

Can test later today, currently working for a client on Windows on which this also works. I will also update to the latest Ubuntu version 21.10 and see if it works with the new version.
Comment 10 Lars Vogel CLA 2021-11-09 10:44:59 EST
Created attachment 287471 [details]
Screenshot

(In reply to Alexander Kurtakov from comment #7)
> Lars, what do you see on the Web browser preference page? Can you try
> clicking "Detect" button? Switch between detected browsers and retry?

Use external browser is selected with the option "Default system web browser".

Detect does not make any difference. See new screenshot.
Comment 11 Alexander Kurtakov CLA 2021-11-09 10:56:44 EST
If you switch to Chrome does it work?
Comment 12 Alexander Kurtakov CLA 2021-11-09 11:00:40 EST
What is the output of `xdg-mime query default text/html`? Does it work if you call `xdg-open your_file.html`?
Comment 13 Lars Vogel CLA 2021-11-09 12:15:38 EST
(In reply to Alexander Kurtakov from comment #12)
> What is the output of `xdg-mime query default text/html`? 

chromium_chromium.desktop

Does it work if
> you call `xdg-open your_file.html`?

Yes, that works from the command line.
Comment 14 Alexander Kurtakov CLA 2021-11-09 13:13:19 EST
Would you please install firefox and switch to it? If that works issue is with your chromium installation.
Comment 15 Lars Vogel CLA 2021-11-11 04:00:19 EST
Works fine with Chrome and Firefox but not Chromium. So we close this as NOT ECLIPSE?
Comment 16 Alexander Kurtakov CLA 2021-11-11 04:13:15 EST
(In reply to Lars Vogel from comment #15)
> Works fine with Chrome and Firefox but not Chromium. So we close this as NOT
> ECLIPSE?

Most likely yes. I even wonder is Chromium working on your system at all.