Skip to content

Update .screenz and .temp paths to safer paths. Set default cache path.#1

Open
Throone wants to merge 4 commits intoZarfir:mainfrom
Throone:edit-path
Open

Update .screenz and .temp paths to safer paths. Set default cache path.#1
Throone wants to merge 4 commits intoZarfir:mainfrom
Throone:edit-path

Conversation

@Throone
Copy link

@Throone Throone commented May 18, 2022

Haven't actually tested this in full yet. But as long as vim played nice this should work.
*edit used vim's substitute command

@Throone
Copy link
Author

Throone commented May 18, 2022

Need to add an unset cache at the end of the file, will do when I have access to a computer.

@Throone
Copy link
Author

Throone commented May 20, 2022

To clear up the changes made:
~/.temp was moved to the /tmp directory and renamed to screenz-tmp.
~/.screenz was moved to the ~/.cache/screeenz directory and renamed to parameters.

A short if/else statement discovers if the users uses XDG_CACHE_HOME and will change the default path of parameters to that instead. This was added to the top of the script.

@Kolbo5
Copy link

Kolbo5 commented Aug 10, 2022

Hello !
Nice update ! I get this branch until it's merged in main repo.
Just one thing : you could update the README too (generates a hidden file => generates a parameter file and above)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants