#Flameshot on Wayland immediately exits with code 0 when using sub-commands

83 messages · Page 1 of 1 (latest)

golden latch
#

Never had this issue before, and all of the solutions online either don't work or don't apply to me. I wish I could provide more information but there's no verbose mode for flameshot and I'm not sure how else I can get additional info. Gentoo Linux with a custom 5.19.6 kernel

glad dew
#

flameshot doesn't work well on wayland

#

what DE / WM are you using ?

golden latch
#

Sway

low wigeon
golden latch
#

qt.qpa.wayland: Wayland does not support QWindow::requestActivate()

#

hm

#

let me see what the USE flags are for Flameshot

#

!!! No USE flags found for media-gfx/flameshot-0.10.2

#

cool

#

might be an out of date version

#

let me try the testing branch

low wigeon
golden latch
#
flameshot: error: Hint: try setting the XDG_CURRENT_DESKTOP environment variable.
flameshot: error: Unable to capture screen
flameshot: error: Unable to capture screen
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
flameshot: info: Screenshot aborted.```
#

hm

#

skill issue on my part it seems like

low wigeon
#

(although I thought something with activation was already added to Wayland?)
anyway cool I guess it's solved

golden latch
#

Not sure what to set that env variable too but I'll figure it out

golden latch
#

Set the environment variables and now it seems to just hang

#

oh hold on there's more to the guide

#

yeah it looks like I need some more packages so I'll do this at home when I don't have limited time to compile stuff

glad dew
#

i dyslexia'd

#

i edited my message

#

but yes, glad you have a pointer now

#

keep us posted

golden latch
#

Ah

#

Yea I'll be home in a few hours I think

golden latch
#

error time=1662582986.842655 sender=:1.7 -> destination=:1.28 error_name=org.freedesktop.DBus.Error.UnknownMethod reply_serial=15 string "No such interface “org.freedesktop.portal.Screenshot” on object at path /org/freedesktop/portal/desktop"

low wigeon
#

did you run dbus-update-activation-environment with the three variables

golden latch
#

it's in my sway config, so yes

glad dew
#

can you just try running it manually before proceeding ?

#

just in case

golden latch
#

still does not work

low wigeon
golden latch
#

idrk a lot about dbus so

low wigeon
#

(it's not a file)

#

try running exec --no-startup-id /usr/lib/xdg-desktop-portal -r and then flameshot

golden latch
#

nope

low wigeon
#

does env | grep '^WAYLAND_DISPLAY=' equal < "/proc/$(pidof xdg-desktop-portal)/environ" tr '\0' '\n' | grep '^WAYLAND_DISPLAY='

golden latch
#

yup

low wigeon
#

dbus-send --session --dest=org.freedesktop.portal.Desktop --type=method_call --print-reply /org/freedesktop/portal/desktop org.freedesktop.DBus.Introspectable.Introspect | grep Screenshot
can it find Screenshot

golden latch
#

nope

low wigeon
#

it was supposed to be running tho, since it was in /proc

#

maybe the -wlr isn't running?

low wigeon
golden latch
#

I will do that later because I'm currently halfway through a system upgrade

golden latch
#

ok necroing on my old thread because it still doesn't work and I forgot about the thread; running flameshot to monitor only says QObject::connect: No such signal QPlatformNativeInterface::systemTrayWindowChanged(QScreen*), and running flameshot gui just hangs indefinitely. I also installed xdg-desktop-portal-wlr but that command doesn't exist so I'm not entirely sure what package I need

golden latch
#

note the other distro tag, I'm using Gentoo linux

glad dew
#

do you have all the dependencies ?

#

it sounds like a qt issue

glad dew
#

skill issue

low wigeon
golden latch
golden latch
#

do I need to start something qt related with sway?

low wigeon
low wigeon
#

you're making me check
ok I guess it's /usr/libexec

golden latch
#

okay yeah

#
at-spi-bus-launcher          gimp-debug-tool-2.0    man-db                               scdaemon
bluetooth                    gio-launch-desktop     mbim-proxy                           w3m
coreutils                    git-core               nm-cloud-setup                       xdg-desktop-portal
cups                         glib-pacrunner         nm-daemon-helper                     xdg-desktop-portal-rewrite-launchers
dbus-bash-completion-helper  gpg-check-pattern      nm-dhcp-helper                       xdg-desktop-portal-validate-icon
dbus-daemon-launch-helper    gpg-pair-tool          nm-dispatcher                        xdg-desktop-portal-wlr
dconf-service                gpg-preset-passphrase  nm-initrd-generator                  xdg-document-portal
editor                       gpg-protect-tool       nm-priv-helper                       xdg-permission-store
eselect-java                 gpg-wks-client         nullmailer                           Xwayland
gcc                          keyboxd                p11-kit
gcr-prompter                 libical                pager
gcr-ssh-agent                libinput               polkit-gnome-authentication-agent-1```
#

sorry for being really slow about responses I keep forgetting to reply

low wigeon
#

np

golden latch
#

pipewire I haven't set up properly yet so I don't really care about that unless it's a different problem too

low wigeon
#

is it the same if you run it with -r

golden latch
#

yes

low wigeon
#

what if you ignore the error

#

and run flameshot

#

while it's running

glad dew
#

skill issue

golden latch
low wigeon
#

oh lol

#

maybe it requires pipewire then

golden latch
#

sooooo I need to set up audio to use a screenshot tool

#

aaaa

low wigeon
#

is there a command line option to use it for just screenshots

glad dew
#

yeah

#

how was it called