#Flameshot on Wayland immediately exits with code 0 when using sub-commands
83 messages · Page 1 of 1 (latest)
Sway
I'm 99% sure flameshot works on Wayland considering articles like this exist https://flameshot.org/docs/guide/wayland-help/
try what they say here for additional info https://github.com/flameshot-org/flameshot/issues/2351#issuecomment-1038025969
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
that one isn't important
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
(although I thought something with activation was already added to Wayland?)
anyway cool I guess it's solved
Not sure what to set that env variable too but I'll figure it out
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
i dyslexia'd
i edited my message
but yes, glad you have a pointer now
keep us posted
did everything in here but the systemctl command since I'm using OpenRC, still decides to hang
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"
did you run dbus-update-activation-environment with the three variables
it's in my sway config, so yes
still does not work
is the interface really not there in the session dbus? (mine has Desktop instead of desktop)
idrk a lot about dbus so
(it's not a file)
try running exec --no-startup-id /usr/lib/xdg-desktop-portal -r and then flameshot
nope
does env | grep '^WAYLAND_DISPLAY=' equal < "/proc/$(pidof xdg-desktop-portal)/environ" tr '\0' '\n' | grep '^WAYLAND_DISPLAY='
yup
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
nope
then I guess the portal isn't running
did you try the above line in sway config?
it was supposed to be running tho, since it was in /proc
maybe the -wlr isn't running?
ok so instead of this line, try manually running xdg-desktop-portal-wlr -r and then flameshot
I will do that later because I'm currently halfway through a system upgrade
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
try installing from the AUR
note the other distro tag, I'm using Gentoo linux
skill issue
it's probably in libexecdir then
what exactly is that? It's not a package in the gentoo repositories
all the dependencies of the official gentoo package, yes
do I need to start something qt related with sway?
a directory. isn't there a command to check all the files of a package?
you're making me check
ok I guess it's /usr/libexec
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
np
pipewire I haven't set up properly yet so I don't really care about that unless it's a different problem too
is it the same if you run it with -r
yes
skill issue
well it immediately exits lol
is there a command line option to use it for just screenshots