Applications directory non-existent #2

Closed
opened 2026-06-22 06:37:05 +00:00 by rubeae · 1 comment
Owner

Problem

Not all Linux distro users own a $HOME/Applications. This is Distro dependent. (e.g. some base-Arch installs using $HOME/Programs)
When trying to download to the default folder, has an error due to folder not existing.


Possible Solutions

The real solution is add better code handling, options, and flags overall as a new iteration of the script.
For now, the below are outward thoughts for future reference, but will implement a quick fix for consistent code intent right now.

curl --create-dirs flag

Stupid simple solution for the current iteration of the script, which can be reworked.
Add --create-dirs to the curl command performing the download so it creates directories it needs.

Check for alternate directories

Hard-code in possible alternate directories to check for, before falling back on a default.

add --download-directory flag to script

This makes sense. This should be an added solution regardless, and is part of long term plan.

# Problem Not all Linux distro users own a `$HOME/Applications`. This is Distro dependent. (e.g. some base-Arch installs using `$HOME/Programs`) When trying to download to the default folder, has an error due to folder not existing. --- # Possible Solutions The real solution is add better code handling, options, and flags overall as a new iteration of the script. For now, the below are outward thoughts for future reference, but will implement a quick fix for consistent code intent right now. ### `curl --create-dirs` flag Stupid simple solution for the current iteration of the script, which can be reworked. Add `--create-dirs` to the `curl` command performing the download so it creates directories it needs. ### Check for alternate directories Hard-code in possible alternate directories to check for, before falling back on a default. ### add `--download-directory` flag to script This makes sense. This should be an added solution regardless, and is part of long term plan.
rubeae self-assigned this 2026-06-22 06:37:05 +00:00
rubeae added reference refs/tags/rc-1.0 2026-06-22 06:40:15 +00:00
Author
Owner

Added curl --create-dirs with b11fdec0e1.
Plans to re-iterate on it if substantial updates to the code occur.

Added `curl --create-dirs` with b11fdec0e1d6d11923e060d85bb90121ec9083e7. Plans to re-iterate on it if substantial updates to the code occur.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
rubeae/fluxer-update#2
No description provided.