flameshot-org / flameshot

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

KDE Plasma shortcut on wayland #2773

Open Rosentti opened 2 years ago

Rosentti commented 2 years ago

Flameshot Version

Flameshot v11.0.0 (77ccac56) Compiled with Qt 5.15.2 linux: 5.18.9-zen1-1-zen arch: unknown

Installation Type

User repository (AUR)

Operating System type and version

Arch Linux

Description

KDE Plasma as of 5.25 does not support custom shortcuts on wayland. You can however click "Add application" and bind the wanted keys from there. I think the documentation should be updated to reflect this.

Steps to reproduce

  1. Read about adding a flameshot shortcut.
  2. Open kde system settings
  3. Go to shortcuts and observe no custom shortcut option on wayland

Screenshots or screen recordings

No response

System Information

  1. Arch Linux
  2. Single monitor (3840x2160 60Hz)
  3. DE: KDE, WM: KWin, Wayland
jjgalvez commented 2 years ago

I just installed flameshot on KDE and all I did was under shortcuts uncheck "Print" for spectacle, and autostart flameshot, it binds the print screnn key automatically

haizaar commented 2 years ago

@20PercentRendered Does it work for you though? - it did for me till plasma 5.25.x upgrade but after that when I invoke shortcut for "capture region" flameshot entry appears briefly under taskbar and nothing else happens.

Rosentti commented 2 years ago

I haven't upgraded plasma yet, but it does work for me still.

haizaar commented 2 years ago

So you are still on 5.24.x?

borgmanJeremy commented 2 years ago

I see you compiled from source. Did you enable the wayland clipboard flag?

haizaar commented 2 years ago

I see you compiled from source. Did you enable the wayland clipboard flag?

How to do that exactly? (I'm using nix default package but happy to experiment)

Rosentti commented 2 years ago

I used the flameshot-git package from AUR, which enables it. And I was on Plasma 5.25.3, and the clipboard as well as the hotkey works.

borgmanJeremy commented 2 years ago

When you call cmake pass the -DUSE_WAYLAND_CLIPBOARD

I think that's the flag, I'm on mobile currently.

haizaar commented 2 years ago

Tried that. Unfortunately can't build it on for some reason. Probably shell.nix is missing some dependencies.


$ git clone git@github.com:flameshot-org/flameshot.git
$ cd flameshot
$ nix-shell
$ mkdir build
$ cd build
$ cmake ../

CMake Warning at cmake/Cache.cmake:28 (message):
  ccache is enabled but was not found.  Not using it
Call Stack (most recent call first):
  CMakeLists.txt:84 (include)

CMake Warning at src/CMakeLists.txt:14 (find_package):
  By not providing "FindKF5GuiAddons.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "KF5GuiAddons", but CMake did not find one.

  Could not find a package configuration file provided by "KF5GuiAddons" with
  any of the following names:

    KF5GuiAddonsConfig.cmake
    kf5guiaddons-config.cmake

  Add the installation prefix of "KF5GuiAddons" to CMAKE_PREFIX_PATH or set
  "KF5GuiAddons_DIR" to a directory containing one of the above files.  If
  "KF5GuiAddons" provides a separate development package or SDK, be sure it
  has been installed.

Flameshot predefined color palette large: false
git found: /run/current-system/sw/bin/git in version     2.37.0
FLAMESHOT_GIT_HASH: 001726a5
-- Configuring done
CMake Error at src/CMakeLists.txt:210 (target_link_libraries):
  Target "flameshot" links to:

    KF5::GuiAddons

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.
haizaar commented 2 years ago

May my problem (lack of global shortcuts support) be related to the fact that running flameshot gui does nothing? The only way to use it is to run just flameshot and then to use system tray icon.

Trying specifying the region results in the follow (error?) message:

$ flameshot gui --region 100x100+100+100
QSettings::value: Empty key passed
QSettings::value: Empty key passed

(and it exists with status 1)

borgmanJeremy commented 2 years ago

Tried that. Unfortunately can't build it on for some reason. Probably shell.nix is missing some dependencies.



$ git clone git@github.com:flameshot-org/flameshot.git

$ cd flameshot

$ nix-shell

$ mkdir build

$ cd build

$ cmake ../

CMake Warning at cmake/Cache.cmake:28 (message):

  ccache is enabled but was not found.  Not using it

Call Stack (most recent call first):

  CMakeLists.txt:84 (include)

CMake Warning at src/CMakeLists.txt:14 (find_package):

  By not providing "FindKF5GuiAddons.cmake" in CMAKE_MODULE_PATH this project

  has asked CMake to find a package configuration file provided by

  "KF5GuiAddons", but CMake did not find one.

  Could not find a package configuration file provided by "KF5GuiAddons" with

  any of the following names:

    KF5GuiAddonsConfig.cmake

    kf5guiaddons-config.cmake

  Add the installation prefix of "KF5GuiAddons" to CMAKE_PREFIX_PATH or set

  "KF5GuiAddons_DIR" to a directory containing one of the above files.  If

  "KF5GuiAddons" provides a separate development package or SDK, be sure it

  has been installed.

Flameshot predefined color palette large: false

git found: /run/current-system/sw/bin/git in version     2.37.0

FLAMESHOT_GIT_HASH: 001726a5

-- Configuring done

CMake Error at src/CMakeLists.txt:210 (target_link_libraries):

  Target "flameshot" links to:

    KF5::GuiAddons

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.

    * A find_package call is missing for an IMPORTED target.

    * An ALIAS target is missing.

-- Generating done

CMake Generate step failed.  Build files cannot be regenerated correctly.

You need to install the missing dependencies. I don't k ow what those would be for nix. It is required for a working clipboard on wayland kde.

haizaar commented 2 years ago

Yeap, reported the build failure upstream. I'll attempt this again one they fix it.

pintassilgo commented 2 years ago

@haizaar

Could not find a package configuration file provided by "KF5GuiAddons" with  any of the following names:
KF5GuiAddonsConfig.cmake
kf5guiaddons-config.cmake

I don't know about Nix package manager, but on openSUSE I fixed that by installing kguiaddons-devel.

haizaar commented 2 years ago

@borgmanJeremy enabling wayland clipboard helped tremendously with long-going https://github.com/flameshot-org/flameshot/issues/2848 - thank you!

Regarding global shortcuts - they still don't work. And the reason - flameshot gets segfault when invoked through global shortcut :D

haizaar commented 2 years ago

First time I press Shift-Print - portal gets created and nothing else happens though complains about lack of pipewire (not sure how essential it is here). The second time I press Shift-Print - it goes into segmentation fault. That's regardless whether wayland keyboard is compiled in or not.

Here is the full log from journalct. Any ideas?

Jul 30 02:29:07 foobar systemd[6674]: Started flameshot.
Jul 30 02:29:07 foobar dbus-daemon[6696]: [session uid=1000 pid=6696] Activating via systemd: service name='org.freedesktop.portal.Desktop' unit='xdg-desktop-portal.service' requested by ':1.44' (uid=1000 pid=7306 comm="/run/current-system/sw/bin/flameshot gui --delay 5" label="kernel")
Jul 30 02:29:07 foobar systemd[6674]: Starting Portal service...
Jul 30 02:29:07 foobar dbus-daemon[6696]: [session uid=1000 pid=6696] Activating via systemd: service name='org.freedesktop.portal.Documents' unit='xdg-document-portal.service' requested by ':1.45' (uid=1000 pid=7310 comm="/nix/store/3nmygkyfg7mi31r4r2fip2cfk142xr0g-xdg-de" label="kernel")
Jul 30 02:29:07 foobar systemd[6674]: Starting flatpak document portal service...
Jul 30 02:29:07 foobar dbus-daemon[6696]: [session uid=1000 pid=6696] Activating via systemd: service name='org.freedesktop.impl.portal.PermissionStore' unit='xdg-permission-store.service' requested by ':1.46' (uid=1000 pid=7314 comm="/nix/store/3nmygkyfg7mi31r4r2fip2cfk142xr0g-xdg-de" label="kernel")
Jul 30 02:29:07 foobar systemd[6674]: Starting sandboxed app permission store...
Jul 30 02:29:07 foobar systemd[6674]: Started sandboxed app permission store.
Jul 30 02:29:07 foobar dbus-daemon[6696]: [session uid=1000 pid=6696] Successfully activated service 'org.freedesktop.impl.portal.PermissionStore'
Jul 30 02:29:07 foobar systemd[6674]: Started flatpak document portal service.
Jul 30 02:29:07 foobar dbus-daemon[6696]: [session uid=1000 pid=6696] Successfully activated service 'org.freedesktop.portal.Documents'
Jul 30 02:29:07 foobar systemd[6674]: Starting Xdg Desktop Portal For KDE...
Jul 30 02:29:07 foobar dbus-daemon[6696]: [session uid=1000 pid=6696] Activating via systemd: service name='org.freedesktop.impl.portal.desktop.kde' unit='plasma-xdg-desktop-portal-kde.service' requested by ':1.45' (uid=1000 pid=7310 comm="/nix/store/3nmygkyfg7mi31r4r2fip2cfk142xr0g-xdg-de" label="kernel")
Jul 30 02:29:07 foobar dbus-daemon[6696]: [session uid=1000 pid=6696] Successfully activated service 'org.freedesktop.impl.portal.desktop.kde'
Jul 30 02:29:07 foobar systemd[6674]: Started Xdg Desktop Portal For KDE.
Jul 30 02:29:07 foobar xdg-desktop-portal-kde[7331]: xdp-kde: Desktop portal registered successfully
Jul 30 02:29:07 foobar xdg-desktop-portal-kde[7331]: xdp-kde-wayland-integration: Registry initialized
Jul 30 02:29:07 foobar xdg-desktop-portal-kde[7331]: xdp-kde-wayland-integration: Adding output:
Jul 30 02:29:07 foobar xdg-desktop-portal-kde[7331]: xdp-kde-wayland-integration:     manufacturer:  "CSOT T3"
Jul 30 02:29:07 foobar xdg-desktop-portal-kde[7331]: xdp-kde-wayland-integration:     model:  "eDP-1-unknown"
Jul 30 02:29:07 foobar xdg-desktop-portal-kde[7331]: xdp-kde-wayland-integration:     resolution:  QSize(3840, 2400)
Jul 30 02:29:07 foobar xdg-desktop-portal-kde[7331]: xdp-kde-wayland-integration: Adding output:
Jul 30 02:29:07 foobar xdg-desktop-portal-kde[7331]: xdp-kde-wayland-integration:     manufacturer:  "HWP"
Jul 30 02:29:07 foobar xdg-desktop-portal-kde[7331]: xdp-kde-wayland-integration:     model:  "HP Z27n/CNK72514PK"
Jul 30 02:29:07 foobar xdg-desktop-portal-kde[7331]: xdp-kde-wayland-integration:     resolution:  QSize(2560, 1440)
Jul 30 02:29:07 foobar .xdg-desktop-po[7310]: Failed connect to PipeWire: Couldn't connect to PipeWire
Jul 30 02:29:07 foobar dbus-daemon[6696]: [session uid=1000 pid=6696] Successfully activated service 'org.freedesktop.portal.Desktop'
Jul 30 02:29:07 foobar systemd[6674]: Started Portal service.
Jul 30 02:29:37 foobar xdg-desktop-portal-kde[7331]: xdp-kde-background: GetAppState called: no parameters
Jul 30 02:30:07 foobar xdg-desktop-portal-kde[7331]: xdp-kde-background: GetAppState called: no parameters

######## PRESSED SHIFT-PRINT second time here

Jul 30 02:30:37 foobar xdg-desktop-portal-kde[7331]: xdp-kde-background: GetAppState called: no parameters

Jul 30 02:30:41 foobar kwin_wayland_wrapper[7338]: Omitting both --window and --windowclass arguments is not recommended
Jul 30 02:30:41 foobar systemd[6674]: Started flameshot.
Jul 30 02:30:41 foobar systemd-coredump[7350]: [🡕] Process 7342 (.flameshot-wrap) of user 1000 dumped core.

                                             Module linux-vdso.so.1 with build-id 6abfcdf5740929f6ff58cd2884f17c97b5c8a52c
                                             Module libmvec.so.1 with build-id b7aea5c71e9e752695fe6478daf153cde987d277
                                             Module libogg.so.0 without build-id.
                                             Module libopus.so.0 without build-id.
                                             Module libvorbisenc.so.2 without build-id.
                                             Module libvorbis.so.0 without build-id.
                                             Module libFLAC.so.8 without build-id.
                                             Module libsndfile.so.1 without build-id.
                                             Module libpulsecommon-15.0.so without build-id.
                                             Module libblkid.so.1 with build-id d75f8e5ad6f03b06794ea6cd0bb8249f6a048e84
                                             Module libpulse-mainloop-glib.so.0 without build-id.
                                             Module libpulse.so.0 without build-id.
                                             Module libxcb-keysyms.so.1 without build-id.
                                             Module libudev.so.1 without build-id.
                                             Module libKF5Archive.so.5 without build-id.
                                             Module libQt5PrintSupport.so.5 without build-id.
                                             Module libKF5GlobalAccel.so.5 without build-id.
                                             Module libmount.so.1 with build-id 9c7b10d2800d973c6f72c95b6c94efc13ee76a6e
                                             Module libKF5DBusAddons.so.5 without build-id.
                                             Module libKF5Crash.so.5 without build-id.
                                             Module librt.so.1 with build-id ed557da05bff07333b6e1a084fd20daa476e6b84
                                             Module libQt5QuickTemplates2.so.5 without build-id.
                                             Module libXfixes.so.3 without build-id.
                                             Module libXrender.so.1 without build-id.
                                             Module libdbusmenu-qt5.so.2 without build-id.
                                             Module libphonon4qt5.so.4 without build-id.
                                             Module libattr.so.1 without build-id.
                                             Module libacl.so.1 without build-id.
                                             Module libKF5GuiAddons.so.5 without build-id.
                                             Module libKF5CoreAddons.so.5 without build-id.
                                             Module libQt5X11Extras.so.5 without build-id.
                                             Module libKF5WindowSystem.so.5 without build-id.
                                             Module libKF5ConfigCore.so.5 without build-id.
                                             Module libQt5Xml.so.5 without build-id.
                                             Module libKF5Solid.so.5 without build-id.
                                             Module libKF5ItemViews.so.5 without build-id.
                                             Module libKF5WidgetsAddons.so.5 without build-id.
                                             Module libKF5Codecs.so.5 without build-id.
                                             Module libKF5I18n.so.5 without build-id.
                                             Module libKF5AuthCore.so.5 without build-id.
                                             Module libKF5Auth.so.5 without build-id.
                                             Module libKF5ConfigGui.so.5 without build-id.
                                             Module libKF5ConfigWidgets.so.5 without build-id.
                                             Module libKF5IconThemes.so.5 without build-id.
                                             Module libKF5XmlGui.so.5 without build-id.
                                             Module libKF5Bookmarks.so.5 without build-id.
                                             Module libQt5Concurrent.so.5 without build-id.
                                             Module libKF5Completion.so.5 without build-id.
                                             Module libKF5Service.so.5 without build-id.
                                             Module libKF5JobWidgets.so.5 without build-id.
                                             Module libKF5KIOCore.so.5 without build-id.
                                             Module libKF5KIOGui.so.5 without build-id.
                                             Module libQt5Qml.so.5 without build-id.
                                             Module libQt5QmlModels.so.5 without build-id.
                                             Module libQt5Quick.so.5 without build-id.
                                             Module libQt5QuickControls2.so.5 without build-id.
                                             Module libXcursor.so.1 without build-id.
                                             Module libKF5Notifications.so.5 without build-id.
                                             Module libKF5KIOWidgets.so.5 without build-id.
                                             Module libKF5KIOFileWidgets.so.5 without build-id.
                                             Module KDEPlasmaPlatformTheme.so without build-id.
                                             Module libcomposeplatforminputcontextplugin.so without build-id.
                                             Module libexpat.so.1 without build-id.
                                             Module libffi.so.8 without build-id.
                                             Module libfontconfig.so.1 without build-id.
                                             Module libxkbcommon.so.0 without build-id.
                                             Module libwayland-client.so.0 with build-id 72340e5c5b3bf0d5d02712b14424ae64b4afdefe
                                             Module libwayland-cursor.so.0 with build-id 47ef623e9657b1f7d7dd91a0a8c9ebdb862151be
                                             Module libQt5WaylandClient.so.5 without build-id.
                                             Module libqwayland-generic.so without build-id.
                                             Module libgpg-error.so.0 without build-id.
                                             Module libXdmcp.so.6 without build-id.
                                             Module libXau.so.6 without build-id.
                                             Module libbz2.so.1 without build-id.
                                             Module liblz4.so.1 without build-id.
                                             Module liblzma.so.5 without build-id.
                                             Module libgcrypt.so.20 without build-id.
                                             Module libcap.so.2 without build-id.
                                             Module libxcb.so.1 without build-id.
                                             Module libpcre.so.1 without build-id.
                                             Module libgraphite2.so.3 without build-id.
                                             Module libfreetype.so.6 without build-id.
                                             Module libdl.so.2 with build-id d4f1e5aaaf54dfef8456ddc9037f7231d23e5aac
                                             Module libresolv.so.2 with build-id b5d4c490a8eb5e0250801eca8bba3fcd82e30399
                                             Module libkeyutils.so.1 without build-id.
                                             Module libkrb5support.so.0 without build-id.
                                             Module libcom_err.so.3 without build-id.
                                             Module libk5crypto.so.3 without build-id.
                                             Module libkrb5.so.3 without build-id.
                                             Module libsystemd.so.0 without build-id.
                                             Module libGLdispatch.so.0 without build-id.
                                             Module libXext.so.6 without build-id.
                                             Module libX11.so.6 without build-id.
                                             Module libGLX.so.0 without build-id.
                                             Module ld-linux-x86-64.so.2 with build-id d03865ed51879bf47fd62f733e36e48225a57002
                                             Module libglib-2.0.so.0 with build-id dbcd6dc2500293e154a0cc47011d8c05633fc394
                                             Module libgthread-2.0.so.0 with build-id 5ce04ce244b0020ca451278defec4db0421542ad
                                             Module libzstd.so.1 without build-id.
                                             Module libpcre2-16.so.0 without build-id.
                                             Module libicudata.so.71 without build-id.
                                             Module libicuuc.so.71 without build-id.
                                             Module libicui18n.so.71 without build-id.
                                             Module libharfbuzz.so.0 without build-id.
                                             Module libpng16.so.16 without build-id.
                                             Module libcrypto.so.1.1 with build-id df7f63fbae75e363785a7e703c755a45e1a5c5e2
                                             Module libssl.so.1.1 with build-id 2a419b0e8b3af1b643414a3b221525e22460ec67
                                             Module libgssapi_krb5.so.2 without build-id.
                                             Module libdbus-1.so.3 without build-id.
                                             Module libpthread.so.0 with build-id bb78b459102641bd7a8a1301a4f123fb73c6c6dc
                                             Module libz.so.1 without build-id.
                                             Module libGL.so.1 without build-id.
                                             Module libc.so.6 with build-id ea1f6a16abeb1d373d64b68764af65e0b44d8c9e
                                             Module libgcc_s.so.1 without build-id.
                                             Module libm.so.6 with build-id 97c2d7b75b8233a50f7a4d884af8e653679d627c
                                             Module libstdc++.so.6 without build-id.
                                             Module libQt5Core.so.5 without build-id.
                                             Module libQt5Gui.so.5 without build-id.
                                             Module libQt5Widgets.so.5 without build-id.
                                             Module libQt5Network.so.5 without build-id.
                                             Module libQt5DBus.so.5 without build-id.
                                             Module libQt5Svg.so.5 without build-id.
                                             Module .flameshot-wrapped without build-id.
                                             Stack trace of thread 7342:
                                             #0  0x00007feb9dec9d7b _ZN23QCoreApplicationPrivate34sendThroughApplicationEventFiltersEP7QObjectP6QEvent (libQt5Core.so.5 + 0x2c9d7b)
                                             #1  0x00007feb9eb717d8 _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt5Widgets.so.5 + 0x1717d8)
                                             #2  0x00007feb9deca16a _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5 + 0x2ca16a)
                                             #3  0x00007feb9defeca7 _ZN14QObjectPrivate16setParent_helperEP7QObject (libQt5Core.so.5 + 0x2feca7)
                                             #4  0x00007feb9deff1b8 _ZN7QObjectD2Ev (libQt5Core.so.5 + 0x2ff1b8)
                                             #5  0x00007feb9de34c7c n/a (libQt5Core.so.5 + 0x234c7c)
                                             #6  0x00007feb9de34d19 n/a (libQt5Core.so.5 + 0x234d19)
                                             #7  0x00007feb9def43d8 _ZN14QObjectPrivate14deleteChildrenEv (libQt5Core.so.5 + 0x2f43d8)
                                             #8  0x00007feb9deff184 _ZN7QObjectD2Ev (libQt5Core.so.5 + 0x2ff184)
                                             #9  0x00007feb9de2ee09 _ZN18QFileSystemWatcherD0Ev (libQt5Core.so.5 + 0x22ee09)
                                             #10 0x00000000004a0bb7 _ZN14QSharedPointerI18QFileSystemWatcherED2Ev (.flameshot-wrapped + 0xa0bb7)
                                             #11 0x00007feb9d641205 __run_exit_handlers (libc.so.6 + 0x3f205)
                                             #12 0x00007feb9d64138a exit (libc.so.6 + 0x3f38a)
                                             #13 0x00007feb9d62b23e __libc_start_call_main (libc.so.6 + 0x2923e)
                                             #14 0x00007feb9d62b2f5 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x292f5)
                                             #15 0x0000000000457281 _start (.flameshot-wrapped + 0x57281)

                                             Stack trace of thread 7346:
                                             #0  0x00007feb9d684cb5 __futex_abstimed_wait_common (libc.so.6 + 0x82cb5)
                                             #1  0x00007feb9d6874f2 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x854f2)
                                             #2  0x00007feb9dcdbe1b _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt5Core.so.5 + 0xdbe1b)
                                             #3  0x00007feb8cf34eab n/a (libQt5WaylandClient.so.5 + 0x7ceab)
                                             #4  0x00007feb9dcd5dd1 n/a (libQt5Core.so.5 + 0xd5dd1)
                                             #5  0x00007feb9d687ff2 start_thread (libc.so.6 + 0x85ff2)
                                             #6  0x00007feb9d70abfc __clone3 (libc.so.6 + 0x108bfc)

                                             Stack trace of thread 7347:
                                             #0  0x00007feb9d6fe5d9 __poll (libc.so.6 + 0xfc5d9)
                                             #1  0x00007feb8cf34f07 n/a (libQt5WaylandClient.so.5 + 0x7cf07)
                                             #2  0x00007feb9dcd5dd1 n/a (libQt5Core.so.5 + 0xd5dd1)
                                             #3  0x00007feb9d687ff2 start_thread (libc.so.6 + 0x85ff2)
                                             #4  0x00007feb9d70abfc __clone3 (libc.so.6 + 0x108bfc)
                                             ELF object binary architecture: AMD x86-64
Congee commented 1 year ago

For those who are wondering, the nixpkgs dependency is libsForQt5.kguiaddons

haizaar commented 1 year ago

Thanks. I already run from my own branch and it works fine: https://github.com/haizaar/nixpkgs/commit/b5b47cada8e36fa541100f76adb80aaa25b045bb

On Thu, 13 Oct 2022 at 02:33, Changsheng Wu @.***> wrote:

For those who are wondering, the nixpkgs dependency is libsForQt5.kguiaddons

— Reply to this email directly, view it on GitHub https://github.com/flameshot-org/flameshot/issues/2773#issuecomment-1276372377, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAOGWLJT2QGAADHS65ORFTWC3K4DANCNFSM53BGJ3TQ . You are receiving this because you were mentioned.Message ID: @.***>

-- Zaar

paul1149 commented 1 year ago

May my problem (lack of global shortcuts support) be related to the fact that running flameshot gui does nothing? The only way to use it is to run just flameshot and then to use system tray icon.

This comment by haizaar solved it for me. I created a custom global shortcut for flameshot gui, and Print worked fine after that. Thanks. MX Linux / kde / kwin

GaetanLepage commented 1 year ago

Thanks. I already run from my own branch and it works fine: haizaar/nixpkgs@b5b47ca

Are you running KDE ? I am running Sway on NixOS and this patch change nothing to the copy behavior. I still get an empty clipboard...

haizaar commented 1 year ago

Yes, I'm running KDE.

On Thu, 4 May 2023 at 22:18, Gaétan Lepage @.***> wrote:

Thanks. I already run from my own branch and it works fine: @.*** https://github.com/haizaar/nixpkgs/commit/b5b47cada8e36fa541100f76adb80aaa25b045bb

Are you running KDE ? I am running Sway on NixOS and this patch change nothing to the copy behavior. I still get an empty clipboard...

— Reply to this email directly, view it on GitHub https://github.com/flameshot-org/flameshot/issues/2773#issuecomment-1534672388, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAOGWL4Y7DSM5CCVE2YBN3XEOM7TANCNFSM53BGJ3TQ . You are receiving this because you were mentioned.Message ID: @.***>

-- Zaar

GaetanLepage commented 1 year ago

Yes, I'm running KDE.

Indeed it works, nevermind ! Thanks for the quick answer !

jsr-p commented 1 year ago

On Ubuntu 22.04 with Sway (Wayland) I installed

sudo apt install g++ cmake build-essential qtbase5-dev qttools5-dev-tools libqt5svg5-dev qttools5-dev
sudo apt-get install libkf5guiaddons-dev

and built the software (Flameshot v12.1.0 (236534b1)) from source using the command

git clone https://github.com/flameshot-org/flameshot.git
cd flameshot
cmake -S . -B build \
    -DUSE_WAYLAND_CLIPBOARD=true \
    -DUSE_WAYLAND_GRIM=ON \
    && cmake --build build

With this, copying to clipboard works and no warnings are raised that the compilation should be done with the USE_WAYLAND_GRIM flag turned on.

Finally, I installed it using

cmake --install build
y0nei commented 1 year ago

On Ubuntu 22.04 with Sway (Wayland) I installed

sudo apt install g++ cmake build-essential qtbase5-dev qttools5-dev-tools libqt5svg5-dev qttools5-dev
sudo apt-get install libkf5guiaddons-dev

and built the software (Flameshot v12.1.0 (236534b)) from source using the command

git clone https://github.com/flameshot-org/flameshot.git
cd flameshot
cmake -S . -B build \
    -DUSE_WAYLAND_CLIPBOARD=true \
    -DUSE_WAYLAND_GRIM=ON \
    && cmake --build build

With this, copying to clipboard works and no warnings are raised that the compilation should be done with the USE_WAYLAND_GRIM flag turned on.

Finally, I installed it using

cmake --install build

had simmilar issue on arch, had to add the kguiaddons package manually in order to build from source