Skip to content
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

flameshot: cannot start: Failed to open "/etc/machine-id" #6094

Open
6 of 7 tasks
celenityy opened this issue Nov 19, 2023 · 2 comments
Open
6 of 7 tasks

flameshot: cannot start: Failed to open "/etc/machine-id" #6094

celenityy opened this issue Nov 19, 2023 · 2 comments

Comments

@celenityy
Copy link
Contributor

celenityy commented Nov 19, 2023

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

@rusty-snake
Copy link
Collaborator

rusty-snake commented Nov 19, 2023

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

@celenityy
Copy link
Contributor Author

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.

@kmk3 kmk3 changed the title Flameshot not starting. flameshot: cannot start: Failed to open "/etc/machine-id" Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants