flameshot-org / flameshot

Powerful yet simple to use screenshot software :desktop_computer: :camera_flash:
https://flameshot.org
GNU General Public License v3.0
24.6k stars 1.58k forks source link

Wayland and Fedora29 #421

Closed porjo closed 5 years ago

porjo commented 5 years ago

Flameshot version 0.6.0

Describe the bug Attempting to use Wayland results in core dump.

$  QT_QPA_PLATFORM=wayland flameshot
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

Aborted (core dumped)

To Reproduce Run with QT_QPA_PLATFORM=wayland flameshot

Expected behavior Should run or error and exit gracefully.

System Information Fedora 29 using Wayland

holazt commented 5 years ago

@porjo Exactly, fedora 29 uses XWayland.

thebitstick commented 5 years ago

If you don't have qt wayland support installed, running qt with wayland won't work, it's simple.

holazt commented 5 years ago

@porjo sudo dnf install qt5-qtwayland

porjo commented 5 years ago

@ZetaoYang I have installed packageqt5-qtwayland - now I get this instead:

$ QT_QPA_PLATFORM=wayland flameshot
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
QSocketNotifier: Can only be used with threads started with QThread

And Flameshot trayicon is not visible.

thebitstick commented 5 years ago

Do you have a Tray icons extension installed on gnome?

porjo commented 5 years ago

Do you have a Tray icons extension installed on gnome?

Yes

holazt commented 5 years ago

@porjo Please try https://extensions.gnome.org/extension/615/appindicator-support/

porjo commented 5 years ago

@porjo Please try https://extensions.gnome.org/extension/615/appindicator-support/

I uninstalled Topicons and installed Appindicator, and now flameshot trayicon appears using wayland. Thanks!