[GH-ISSUE #6094] flameshot: cannot start: Failed to open "/etc/machine-id" #3175

Open
opened 2026-05-05 09:48:01 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @celenityy on GitHub (Nov 19, 2023).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6094

Description

Flameshot isn't successfully launching.

Steps to Reproduce

  1. Run in bash LC_ALL=C firejail flameshot (LC_ALL=C to get a consistent
    output in English that can be understood by everybody)
  2. The application doesn't start.

Expected behavior

Application starts.

Actual behavior

Application does not start.

Behavior without a profile

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

The application starts and functions without any issue.

Environment

  • Fedora 39
  • Firejail version 0.9.73
  • GNOME 45.1

Checklist

  • 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.
  • I have performed a short search for similar issues (to avoid opening a duplicate).
    • 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

(flameshot:26): dbind-WARNING **: 16:06:08.518: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown
dbus[26]: D-Bus library appears to be incorrectly set up: see the manual page for dbus-uuidgen to correct this issue. (Failed to open "/var/lib/dbus/machine-id": No such file or directory; Failed to open "/etc/machine-id": No such file or directory)
  D-Bus not built with -rdynamic so unable to print a backtrace

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

https://gist.github.com/Retold3202/2344531594cf63718b707595bcfbe6a5

Originally created by @celenityy on GitHub (Nov 19, 2023). Original GitHub issue: https://github.com/netblue30/firejail/issues/6094 <!-- See the following links for help with formatting: https://guides.github.com/features/mastering-markdown/ https://docs.github.com/en/github/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax --> ### Description Flameshot isn't successfully launching. ### Steps to Reproduce 1. Run in bash LC_ALL=C firejail flameshot (LC_ALL=C to get a consistent output in English that can be understood by everybody) 2. The application doesn't start. ### Expected behavior Application starts. ### Actual behavior Application does not start. ### Behavior without a profile _What changed calling `LC_ALL=C firejail --noprofile /path/to/program` in a terminal?_ The application starts and functions without any issue. ### Environment - Fedora 39 - Firejail version 0.9.73 - GNOME 45.1 ### Checklist <!-- Note: Items are checked with an "x", like so: - [x] This is a checked item. --> - [x] The issues is caused by firejail (i.e. running the program by path (e.g. `/usr/bin/vlc`) "fixes" it). - [x] 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`) - [x] The profile (and redirect profile if exists) hasn't already been fixed [upstream](https://github.com/netblue30/firejail/tree/master/etc). - [x] I have performed a short search for similar issues (to avoid opening a duplicate). - [x] 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> ``` (flameshot:26): dbind-WARNING **: 16:06:08.518: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown dbus[26]: D-Bus library appears to be incorrectly set up: see the manual page for dbus-uuidgen to correct this issue. (Failed to open "/var/lib/dbus/machine-id": No such file or directory; Failed to open "/etc/machine-id": No such file or directory) D-Bus not built with -rdynamic so unable to print a backtrace ``` </p> </details> <details> <summary>Output of <code>LC_ALL=C firejail --debug /path/to/program</code></summary> <p> <!-- If the output is too long to embed it into the comment, create a secret gist at https://gist.github.com/ and link it here. --> [https://gist.github.com/Retold3202/2344531594cf63718b707595bcfbe6a5](https://gist.github.com/Retold3202/2344531594cf63718b707595bcfbe6a5) </p> </details>
Author
Owner

@rusty-snake commented on GitHub (Nov 19, 2023):

I know. 5d0822c52c removed /etc/machine-id for a lot programs that actually need it.

<!-- gh-comment-id:1817919758 --> @rusty-snake commented on GitHub (Nov 19, 2023): I know. 5d0822c52c9a5e631676899e9642911d9143dba8 removed `/etc/machine-id` for a lot programs that actually need it.
Author
Owner

@celenityy commented on GitHub (Nov 19, 2023):

I know. 5d0822c remove /etc/machine-id for a lot program that actually need it.

Yep, I can confirm changing private-etc @tls-ca to private-etc @tls-ca,machine-id in the profile appears to have fixed the problem.

<!-- gh-comment-id:1817923238 --> @celenityy commented on GitHub (Nov 19, 2023): > I know. [5d0822c](https://github.com/netblue30/firejail/commit/5d0822c52c9a5e631676899e9642911d9143dba8) remove `/etc/machine-id` for a lot program that actually need it. Yep, I can confirm changing `private-etc @tls-ca` to `private-etc @tls-ca,machine-id` in the profile appears to have fixed the problem.
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#3175
No description provided.