Registered Member
|
I'm trying to take a screenshot from my own app (c++) in a kwin_wayland session, and I've been looking through Spectacle's source code as a template. I've gathered that I need to query the
So I created a .desktop entry pointed at my binary, in ~/Desktop, and added this line to it. But it still returns the same error, not authorized. I've tried restarting my session, rebooted, changed various combinations of file permissions all to no avail. I also tried removing the deprecated interface from the .desktop file:
Is there some other way I need to grant access to this interface? How would one grant screenshot permission to an arbitrary binary file? plasmashell 5.26.2 kwin 5.26.2 my.desktop file:
|
Registered Member
|
Never mind, I found a clue on https://phabricator.kde.org/D29407
... the .desktop file has to exist in a privileged directory, like /usr/share/applications, where only root has write access. Not somewhere the current user can write. I guess it makes sense, you don't want any app just creating a .desktop file and launching itself with restricted access. But I also saw a lot of recommendations about using the org.freedesktop.portal.screenshot interface, which doesn't seem to exist on my system. Do I need flatpak for that or something? That's another topic I guess. I guess I'll just leave this here in case anyone else is encountering the same predicament. (edit) should I accept this reply as an answer?, or... anyone want a free credit? lol sorry, new around here. |
Registered users: Bing [Bot], Google [Bot], kesang, Yahoo [Bot]