Flameshot: Flameshot v0.6.0 does not open in Fedora: "QSocketNotifier: Can only be used with threads started with QThread"

Created on 21 Mar 2020  Â·  8Comments  Â·  Source: flameshot-org/flameshot

Flameshot version
v0.6.0

Describe the bug
Flameshot application does not open. The error message appears: $ flameshot
“QSocketNotifier: Can only be used with threads started with QThread”.

To Reproduce
Start Flameshot directly or in bash

Expected behavior
Flameshot should work normally.

System Information
Fedora 31 (Workstation Edition).

Most helpful comment

Have you tried running flameshot gui ?

I had the same output on fedora31, but with the extra gui arg, the app launches as expected.

If you're in GNOME, you can also bind flameshot gui to a hotkey.

All 8 comments

I can confirm this bug apply also to Fedora 32 (64bit) beta. The package itself seems not to install the recommended runtime dependencies (qt5-qtbase qt5-qtsvg-devel), but even after installing them manually, flameshot does not run. It just a further line to the error message:

QSocketNotifier: Can only be used with threads started with QThread
QObject::connect: No such signal QPlatformNativeInterface::systemTrayWindowChanged(QScreen*)

Have you tried running flameshot gui ?

I had the same output on fedora31, but with the extra gui arg, the app launches as expected.

If you're in GNOME, you can also bind flameshot gui to a hotkey.

Boom! That fixed it. It should be fixed, and it should be trivial to do so, in the package though. :)

Also I live this here as a temporary fix for others. You can get it to work from the gnome shell (as in super key → type flame.. → press Enter) by manually editing the .desktop file.

sudo vim /usr/share/applications/flameshot.desktop

Then search for the line:

Exec=flameshot

and modify it into:

Exec=flameshot gui

I am going to close this as it is related to v0.6 If you experience this issue on a newer version feel free to reach out.

Still not working on 0.8.3 (Fedora v.32)
[ I even tried to uninstall-reinstall for the sake of it ]

@borgmanJeremy - Not sure if you noticed the above, so I'm pinging just in case... :)

I run this on Fedora32 and Fedora33 with no issues or changes (fractional scaling aside).

Are you sure when you run flameshot the program is not starting? Do you have a gnome sys-tray extension to show the icon?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ElijahLynn picture ElijahLynn  Â·  3Comments

kylewill picture kylewill  Â·  4Comments

ronjouch picture ronjouch  Â·  3Comments

soundsbeard picture soundsbeard  Â·  4Comments

orschiro picture orschiro  Â·  3Comments