You are not logged in.

#1 2024-06-13 15:40:11

feinedsquirrel
Member
Registered: 2020-12-11
Posts: 43

flameshot not showing gui window swaywm

Freshly updated system (as of last night when I was going through all of this).
Swaywm, foot (terminal), i3bar with i3status, and fnott.
zsh (my own config, not oh-my-zsh nor alternatives, though zsh-autosuggestions and zsh-completions and zsh-syntax-highlighting are loaded)

I have both intel and nvidia on this laptop, but I have the nvidia card powered down unless I use prime-run. So display is (should be) only using the intel integrated graphics.

I have followed several guides and hacks to get flameshot to work, but I still get no window.

I've gone through the following:

https://github.com/flameshot-org/flames … support.md

See content here: https://paste.rs/RaUbl.md

One guide I found had me mucking with /usr/share/dbus-1/session.conf, but that yielded no success. It has been reverted to the original file shipped with pacman.

I just found this: https://github.com/flameshot-org/flameshot/issues/3284
Do I need to recompile dbus with USE_WAYLAND_GRIM? The sentence uses "it" not sure which is being referred to.

One issue on github (https://github.com/flameshot-org/flames … 2160443297) suggested to create a wrapper script. I tried that, it did not work. Not sure if it needs to be combined with the following.
The same thread suggests running:

dbus-send --session --print-reply=literal --dest=org.freedesktop.impl.portal.PermissionStore /org/freedesktop/impl/portal/PermissionStore org.freedesktop.impl.portal.PermissionStore.SetPermission string:'screenshot' boolean:true string:'screenshot' string:'flameshot' array:string:'yes'
dbus-send --session --print-reply=literal --dest=org.freedesktop.impl.portal.PermissionStore /org/freedesktop/impl/portal/PermissionStore org.freedesktop.impl.portal.PermissionStore.Lookup string:'screenshot' string:'screenshot'

I have not yet tried them because I am not sure of a way to revert them if they do not work.

Any guidance would be much appreciated

Offline

#2 2024-06-18 09:20:26

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,223

Re: flameshot not showing gui window swaywm

grim is an optional dep of flameshot that should have the effect that commenter talks about (FWIW this would be a flameshot compile flag, not a DBUS flag), is that installed?

Offline

#3 2024-06-18 18:33:02

feinedsquirrel
Member
Registered: 2020-12-11
Posts: 43

Re: flameshot not showing gui window swaywm

Oh darn, I could have saved you some time. Yes, grim is installed. I had this printed the other day, meant to include it in the original dump above:

$ sudo pacman -Qi flameshot
Name            : flameshot
Version         : 12.1.0-3
Description     : Powerful yet simple to use screenshot software
Architecture    : x86_64
URL             : https://github.com/flameshot-org/flameshot
Licenses        : GPL
Groups          : None
Provides        : None
Depends On      : qt5-svg  hicolor-icon-theme  kguiaddons5
Optional Deps   : gnome-shell-extension-appindicator: for system tray icon if you are using Gnome
                  grim: for wlroots wayland support [installed]
                  xdg-desktop-portal: for wayland support, you will need the implementation for your wayland desktop environment [installed]
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 2.80 MiB
Packager        : Antonio Rojas <arojas@archlinux.org>
Build Date      : Sun 01 Oct 2023 01:22:14 AM MDT
Install Date    : Sat 15 Jun 2024 10:09:38 PM MDT
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature
$ sudo pacman -Qi grim
Name            : grim
Version         : 1.4.1-1
Description     : Screenshot utility for Wayland
Architecture    : x86_64
URL             : https://git.sr.ht/~emersion/grim
Licenses        : MIT
Groups          : None
Provides        : None
Depends On      : cairo  libjpeg-turbo  wayland
Optional Deps   : None
Required By     : None
Optional For    : flameshot
Conflicts With  : None
Replaces        : None
Installed Size  : 36.38 KiB
Packager        : Alexander F. Rødseth <xyproto@archlinux.org>
Build Date      : Mon 26 Jun 2023 04:21:30 PM MDT
Install Date    : Sat 15 Jun 2024 10:09:40 PM MDT
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

I re-installed everything that day as a ditch effort in case I had messed with some system files from previous attempts.

flameshot compile flag

Yeah, you are right, I should have been able to figure that out. :facepalm:

Do I understand correctly that if I tried those dbus commands, they wouldn't permanently configure anything, that the effect would only be in the current login session? (that a reboot would revert?)
The man page states --session is per-user-login-session "started each time a user logs in".
I briefly checked around the webpage as well, but couldn't find anything that seemed like it would answer the question.
The arch wiki page mentions it can be permanently configured in XDG_DATA_HOME but the method presented there doesn't use a direct call to dbus-send.

Last edited by feinedsquirrel (2024-06-18 18:33:29)

Offline

Board footer

Powered by FluxBB