#910970 flameshot: does not work on debian buster under wayland

Package:
flameshot
Source:
flameshot
Description:
Powerful yet simple-to-use screenshot software
Submitter:
Karl Kashofer
Date:
2023-06-02 19:15:03 UTC
Severity:
important
#910970#5
Date:
2018-10-13 22:24:10 UTC
From:
To:
Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
fails to to start:

karl@karl-acer2:~$ flameshot
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use
QT_QPA_PLATFORM=wayland to run on Wayland anyway.
karl@karl-acer2:~$ 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.

Abgebrochen
karl@karl-acer2:~$

#910970#10
Date:
2019-09-18 09:16:43 UTC
From:
To:
Wayland support is not proper but it should not crash immediately. Please make
sure you have the relevant wayland packages installed.

#910970#15
Date:
2019-11-15 10:19:41 UTC
From:
To:
Hello,

as in the title,
flameshot does not work under buster with wayland,

clicking on the icon does nothing

hth,
Wim

#910970#20
Date:
2023-06-02 19:11:42 UTC
From:
To:
Hi.

The solution is impement that descibed in this post:

https://github.com/flameshot-org/flameshot/issues/2848

The user pintassilgo found the issue and fixed it.

The user zorn-v made this script that work fine:

============

#!/bin/bash

set  -e

rm -rf build
mkdir -p build
cd  build

sudo apt install devscripts equivs libkf5guiaddons-dev -y
sudo mk-build-deps -t'apt-get -y'  -ir flameshot

aptsource  flameshot
SRC_DIR=`ls | cut -f1 | head -n1`

pushd  ${SRC_DIR}
sed -i's/-DFLAMESHOT_ABOUT_DEB_VERSION/-DUSE_WAYLAND_CLIPBOARD=1
-DFLAMESHOT_ABOUT_DEB_VERSION/'  debian/rules
EMAIL=nobody@email.com  dch -n''
debuild -i -j -us -uc
popd

sudo apt purge flameshot-build-deps devscripts equivs libkf5guiaddons-dev --auto-remove -y

sudo dpkg -i flameshot_*.deb
rm -rf ../build
==============



SUGGEST:  Make the binary with the-DUSE_WAYLAND_CLIPBOARD=1  option set, because it works fine in X11 and Wayland.

Regards.