pop-os / xdg-desktop-portal-cosmic

GNU General Public License v3.0
27 stars 23 forks source link

feat: Restore last used screenshot settings #54

Closed joshuamegnauth54 closed 1 week ago

joshuamegnauth54 commented 3 weeks ago

Closes: pop-os/cosmic-screenshot#29

I tend to reuse the same screenshot settings much like the users in the linked issue. Currently, the portal uses a reasonable default, but it would be ideal to restore the last used options.

This patch implements the plumbing for configs as well as adds a config for the screenshot endpoint. It currently works, but I have to rebase the patch on master and support saving the selected output. The latter is a planned feature as per a comment in screenshot.rs.

The plumbing for configs should be useful in the future as well since there will likely be other settings to store for different endpoints.

To do:

Updates:

mmstick commented 1 week ago

Thanks!