-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
flameshot gui from cli does nothing. dbus error UnknownMethod: "No such interface “org.freedesktop.portal.Screenshot” #2872
Comments
Update: downgrading
Perhaps this change is what's causing the issue? |
I reported it upstream just in case flatpak/xdg-desktop-portal#861 |
@GeorgesStavracas what do you think? is this related to that PR? |
I'd like to add that I'm experiencing this same issue. However, downgrading to this version did not workaround it. Were there more steps than simply downgrading? |
Yes. Beside the downgrade, make sure that you set |
Thank you for the reply. I checked my environment, and that is already set. However I'm still having this issue. I followed the other steps here a long time ago: https://github.com/flameshot-org/flameshot/blob/master/docs/Sway%20and%20wlroots%20support.md Note that flameshot was working for me with sway at one point, and I only just recently noticed that it no longer works. |
Sorry to hear that. I am new to sway and I had had the same problem but it is working for me now. I have not followed all the steps in the link, I skipped some steps as long as it works. Currently I have the following packages installed (I am not sure if the last one is related)
I set only two variables (actually, the first is not necessary for flameshot according to my experimentation, but I have it for other application)
I have not made the said edit in the sway config (expect that I had made a bind for Print to flameshot gui). I run I hope my comment may give a hint for a missing step or package. |
use xdg-desktop-portal 1.14.6-1 is ok, 1.15.0-1 still failed. |
Thanks, downgrade helped |
Because sway run with systemd user service to read environment, add XDG_CURRENT_SESSION to |
As reported in xdg-desktop-portal, this is an issue with xdg-desktop-portal-wlr. There is a newer v2 version of the Screenshot D-Bus API that is now implemented in xdg-desktop-portal-wlr. Closing this issue as it is not a flameshot specific issue. However, as of this writing a newer release of xdg-desktop-portal-wlr has not been released so if you are running into issues you have 2 options:
|
I wonder why archlinux exported to systemd user environment then it worked again. |
xdg-desktop-portal 1.16.0 is released |
@WaleedMortaja the issue is not only with xdg-desktop-portal but xdg-desktop-portal-wlr as well. 0.6.0 is the latest release of xdg-desktop-portal-wlr which does NOT implement the screenshot portal v2. This is required with newer (> 1.14.x) versions of xdg-desktop-portal. Simply upgrading xdg-desktop-portal to the latest will not fix it. As noted in my comment above:
A 3rd option would be to bug the author(s) of xdg-desktop-portal-wlr to cut a new release since the screenshot portal v2 code has been merged. |
There, fixed it for you^^ |
@x10an14 i am confused, what would the PR be? The code has already been merged to xdg-desktop-portal-wlr, it just needs a new release. I'm not aware of a way to submit a PR to do that. |
You raise a valid point, my apologies. I presumed they had the build process automated in such a way that one could trigger a new deployment/release. Updated my comment to reflect this. |
Flameshot Version
$ flameshot --version
Flameshot v12.1.0 (-)
Compiled with Qt 5.15.5
Installation Type
Linux, MacOS, or Windows Package manager (apt, pacman, eopkg, choco, brew, ...)
Operating System type and version
Arch Linux (Linux 2TKZ9K3 5.15.60-1-lts #1 SMP Thu, 11 Aug 2022 14:09:59 +0000 x86_64 GNU/Linux)
Description
Opening up a terminal, typing
flameshot gui
and no screenshot interface shows up nor tray icon. It does appear that flameshot is running though (viaps
). I am running sway and have the following installed:xdg-desktop-portal
- 1.15.0-1xdg-desktop-portal-wlr
- 0.6.0-1grim
- 1.4.0-2sway
- 1:1.7-9qt5-base
- 5.15.5+kde+r174-1I execute sway like:
And in my sway config:
Running
dbus-monitor --session sender=org.freedesktop.portal.Desktop destination=org.freedesktop.portal.Desktop
I see the following error after executing
flameshot gui
from a terminal:Steps to reproduce
flameshot gui
from cliScreenshots or screen recordings
No response
System Information
The text was updated successfully, but these errors were encountered: