gabm / Satty

Satty - Modern Screenshot Annotation. A tool inspired by Swappy and Flameshot.
Mozilla Public License 2.0
486 stars 22 forks source link

Support for ~/ in output dir #63

Open phuhl opened 6 months ago

phuhl commented 6 months ago

It seems that when using ~/ in the output dir path, no screenshot is saved and no error message is produced.

It would be good to be able to use the ~ shortcut for the home directory of the user.

gabm commented 6 months ago

yeah, there is currently no path expansion.. sure there is no message? if there is a positive message, maybe you have a file on your hdd somewhere that starts with ~/?

phuhl commented 6 months ago

Ok, apparently there was an error message, no idea why I did'nt see it last time

gabm commented 6 months ago

okay.. nevertheless: path expansion might be nice

gabm commented 6 months ago

here are a number of alternatives: https://stackoverflow.com/questions/54267608/expand-tilde-in-rust-path-idiomatically

xlucn commented 3 weeks ago

Shell expand is a good option. That allows even more customization, like $HOME.