[GH-ISSUE #6974] kate: links open in KMenuEditor instead of firefox #3441

Closed
opened 2026-05-05 10:00:11 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @mYnDstrEAm on GitHub (Nov 27, 2025).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6974

Description

With the OpenLinks plugin in Kate it's possible to open hyperlinks by ctrl+clicking on them. I'm using Firefox ESR in firejail and I configured firejail /usr/lib/firefox-esr/firefox-esr to be the default Web browser in the Default Applications settings of KDE (Debian 13 with KDE). When I try to click them, it opens the KMenuEditor instead of the firejailed Web browser. Does the firejail profile for Firefox need to be changed to enable this?

Steps to Reproduce

Steps to reproduce the behavior

  1. Run in bash LC_ALL=C firejail /usr/lib/firefox-esr/firefox-esr -p
  2. Configured firejail /usr/lib/firefox-esr/firefox-esr to be the default Web browser in the Default Applications settings of KDE (Debian 13 with KDE)
  3. In the Kate text editor enable the OpenLinks plugin
  4. Ctrl + click on a link in a text document

Expected behavior

It should open the page in the Web browser

Actual behavior

It open KMenuEditor

Behavior without a profile

What changed calling LC_ALL=C firejail --noprofile /path/to/program in a
terminal?

Additional context

Any other detail that may help to understand/debug the problem

Environment

  • Name/version/arch of the Linux kernel (uname -srm):
  • Name/version of the Linux distribution (e.g. "Ubuntu 20.04" or "Arch Linux"):
  • Name/version of the relevant program(s)/package(s) (e.g. "firefox 134.0-1,
    mesa 1:24.3.3-2"):
  • Version of Firejail (firejail --version):
  • If you use a development version of firejail, also the commit from which it
    was compiled (git rev-parse HEAD):

Checklist

  • I am using a supported version of firejail
  • I am using the full program path (e.g. firejail /usr/bin/vlc instead of firejail vlc; see https://github.com/netblue30/firejail/issues/2877)
  • The issues is caused by firejail (i.e. running the program by path (e.g. /usr/bin/vlc) "fixes" it).
  • I can reproduce the issue without custom modifications (e.g. globals.local).
  • The program has a profile. (If not, request one in https://github.com/netblue30/firejail/issues/1139)
  • The profile (and redirect profile if exists) hasn't already been fixed upstream.
  • [c] I have performed a short search for similar issues (to avoid opening a duplicate).
    • [c] I'm aware of browser-allow-drm yes/browser-disable-u2f no in firejail.config to allow DRM/U2F in browsers.
  • I used --profile=PROFILENAME to set the right profile. (Only relevant for AppImages)

Log

Output of LC_ALL=C firejail /path/to/program

output goes here

Output of LC_ALL=C firejail --debug /path/to/program

output goes here

Originally created by @mYnDstrEAm on GitHub (Nov 27, 2025). Original GitHub issue: https://github.com/netblue30/firejail/issues/6974 ### Description With the OpenLinks plugin in Kate it's [possible to open hyperlinks](https://bugs.kde.org/show_bug.cgi?id=93087) by ctrl+clicking on them. I'm using Firefox ESR in firejail and I configured `firejail /usr/lib/firefox-esr/firefox-esr` to be the default Web browser in the Default Applications settings of KDE (Debian 13 with KDE). When I try to click them, it opens the KMenuEditor instead of the firejailed Web browser. Does the firejail profile for Firefox need to be changed to enable this? ### Steps to Reproduce _Steps to reproduce the behavior_ 1. Run in bash `LC_ALL=C firejail /usr/lib/firefox-esr/firefox-esr -p` 2. Configured `firejail /usr/lib/firefox-esr/firefox-esr` to be the default Web browser in the Default Applications settings of KDE (Debian 13 with KDE) 3. In the Kate text editor enable the OpenLinks plugin 4. Ctrl + click on a link in a text document ### Expected behavior It should open the page in the Web browser ### Actual behavior It open KMenuEditor ### Behavior without a profile _What changed calling `LC_ALL=C firejail --noprofile /path/to/program` in a terminal?_ ### Additional context _Any other detail that may help to understand/debug the problem_ ### Environment - Name/version/arch of the Linux kernel (`uname -srm`): - Name/version of the Linux distribution (e.g. "Ubuntu 20.04" or "Arch Linux"): - Name/version of the relevant program(s)/package(s) (e.g. "firefox 134.0-1, mesa 1:24.3.3-2"): - Version of Firejail (`firejail --version`): - If you use a development version of firejail, also the commit from which it was compiled (`git rev-parse HEAD`): ### Checklist <!-- Note: Items are checked with an "x", like so: - [x] This is a checked item. --> - [ ] I am using a [supported version](https://github.com/netblue30/firejail/tree/master/SECURITY.md) of firejail - [x] I am using the full program path (e.g. `firejail /usr/bin/vlc` instead of `firejail vlc`; see `https://github.com/netblue30/firejail/issues/2877`) - [x] The issues is caused by firejail (i.e. running the program by path (e.g. `/usr/bin/vlc`) "fixes" it). - [ ] I can reproduce the issue without custom modifications (e.g. globals.local). - [x] The program has a profile. (If not, request one in `https://github.com/netblue30/firejail/issues/1139`) - [ ] The profile (and redirect profile if exists) hasn't already been fixed [upstream](https://github.com/netblue30/firejail/tree/master/etc). - [c] I have performed a short search for similar issues (to avoid opening a duplicate). - [c] I'm aware of `browser-allow-drm yes`/`browser-disable-u2f no` in `firejail.config` to allow DRM/U2F in browsers. - [ ] I used `--profile=PROFILENAME` to set the right profile. (Only relevant for AppImages) ### Log <details> <summary>Output of <code>LC_ALL=C firejail /path/to/program</code></summary> <p> ``` output goes here ``` </p> </details> <details> <summary>Output of <code>LC_ALL=C firejail --debug /path/to/program</code></summary> <p> <!-- If the output is too long, save it to a file (e.g. "fjdebug.txt") and attach it to the comment: https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/attaching-files If that does not work, create a secret gist at https://gist.github.com/ and link it here. --> ``` output goes here ``` </p> </details>
gitea-mirror 2026-05-05 10:00:11 -06:00
Author
Owner

@kmk3 commented on GitHub (Nov 27, 2025):

Mostly the same issues as in:

Also, what is the output of the following?

ls -l /usr/bin/firefox-esr /usr/lib/firefox-esr/firefox-esr
which -a firefox-esr
<!-- gh-comment-id:3584457931 --> @kmk3 commented on GitHub (Nov 27, 2025): Mostly the same issues as in: * #6973 Also, what is the output of the following? ```sh ls -l /usr/bin/firefox-esr /usr/lib/firefox-esr/firefox-esr which -a firefox-esr ```
Author
Owner

@mYnDstrEAm commented on GitHub (Nov 27, 2025):

The outputs are (without the two same clock times):

lrwxrwxrwx 1 root root     30 Nov 11 xx:xx /usr/bin/firefox-esr -> ../lib/firefox-esr/firefox-esr
-rwxr-xr-x 1 root root 571264 Nov 11 xx:xx /usr/lib/firefox-esr/firefox-esr

and

/usr/bin/firefox-esr
/bin/firefox-esr
<!-- gh-comment-id:3585541504 --> @mYnDstrEAm commented on GitHub (Nov 27, 2025): The outputs are (without the two same clock times): ``` lrwxrwxrwx 1 root root 30 Nov 11 xx:xx /usr/bin/firefox-esr -> ../lib/firefox-esr/firefox-esr -rwxr-xr-x 1 root root 571264 Nov 11 xx:xx /usr/lib/firefox-esr/firefox-esr ``` and ``` /usr/bin/firefox-esr /bin/firefox-esr ```
Author
Owner

@mYnDstrEAm commented on GitHub (Nov 27, 2025):

It works now: I had to change the Default Application for Web browser in the KDE default apps settings to Konqueror, try opening a link, and then change it back to firejail /usr/lib/firefox-esr/firefox-esr. Absolutely no idea why this fixed this. I had already tried changing the default browser earlier so I don't know why this fixed this. Will mention this in the issue about the click to open hyperlink issue in KDE Kate.

<!-- gh-comment-id:3585703578 --> @mYnDstrEAm commented on GitHub (Nov 27, 2025): It works now: I had to change the Default Application for Web browser in the KDE default apps settings to Konqueror, try opening a link, and then change it back to `firejail /usr/lib/firefox-esr/firefox-esr`. Absolutely no idea why this fixed this. I had already tried changing the default browser earlier so I don't know why this fixed this. Will mention this in [the issue about the click to open hyperlink issue in KDE Kate](https://bugs.kde.org/show_bug.cgi?id=93087).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#3441
No description provided.