Reputation: 11
I was trying to use Hubstaff on linux (KDE Neon 6.2 / ubuntu based) - encountered such a problem: when running Hubstaff that was configured to take screenshots, it requires permissions, then when confirming the window with the confirmation button just does NOT DO anything. Googled the entire internet, nobody - not even Hubstaff support offers a solution. It took me like 3 hours to get it solved so I decided to share my knowledge here.
[SOLVED] by running the next command from CLI
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:'netsoft-com.netsoft.hubstaff' \
array:string:'yes'
make sure your Hubstaff app identifies as 'netsoft-com.netsoft.hubstaff' on your machine.
This is a good solution for other apps too, as long as you know the string that the app identifies itself on your linux machine.
Upvotes: 1
Views: 42