Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow setting $SCRIPTDIR #1197

Merged
merged 2 commits into from
Dec 10, 2024
Merged

allow setting $SCRIPTDIR #1197

merged 2 commits into from
Dec 10, 2024

Conversation

Samueru-sama
Copy link
Contributor

@Samueru-sama Samueru-sama commented Dec 10, 2024

This allows the user to set the location of the $SCRIPTDIR directory, if the variable isn't set it will default to xdg-user-dir DESKTOP 2>/dev/nul

It also has a check that makes sure that the directory actually exists, if it doesn't it defaults to $HOME. EDIT: Changed it to $PWD instead.

@ivan-hc ivan-hc merged commit 9d10230 into ivan-hc:dev Dec 10, 2024
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