est31 / minetest-flatpak

Flatpak build files for minetest -- DEPRECATED, please take it from flathub instead: https://github.com/flathub/net.minetest.Minetest
1 stars 0 forks source link

Screenshot file location #2

Open ClaudiusMinimus opened 7 years ago

ClaudiusMinimus commented 7 years ago

When I take screenshot using the default F12, the HUD displays that a screenshot was taken, but png file is not in my default home directory. I have searched for the file, but I have not found it. Is the file location configurable with minetest-flatpak or is this an issue where the HUD incorrectly shows a screenshot was taken, but was not? I tried to find a wiki or forum to ask these questions, but this seems like the only place. I'm not sure if this is an issue or not, so please forgive me if I started this thread in the wrong location.

Thank you, ClaudiusMinimus

est31 commented 7 years ago

@ClaudiusMinimus flatpak is sandboxed by default, therefore any screenshots you make aren't accessible and get deleted once you close minetest. The ~/.minetest directory is shared though. You can set the screenshot_path setting to point to "/home/username/.minetest/", then it will store the screenshots there.

est31 commented 7 years ago

Its more of a workaround though...

est31 commented 7 years ago

Probably the proper way would be to call the save file method for the file chooser portal: https://github.com/flatpak/flatpak/wiki/Portals#orgfreedesktopportalfilechooser

ClaudiusMinimus commented 7 years ago

@est31 - The screenshot_path worked great. There is a message on https://github.com/flatpak/flatpak/wiki/Portals#orgfreedesktopportalfilechooser

"(Note that the filechooser portal is not present in flatpak.git yet)"

Thanks for your quick reply! ClaudiusMinimus