Add user config and add sources file. #10

Merged
hippoz merged 6 commits from Ohio2/aps:master into master 2021-08-29 10:26:44 +03:00
2 changed files with 14 additions and 1 deletions
Showing only changes of commit cb46751b92 - Show all commits

6
aps
View file

@ -5,7 +5,11 @@
# the package manager for Alnux #
#################################
if [ -f "/etc/al/config" ]; then
if [ -f "$XDG_CONFIG_HOME/al/config" ]; then
Review

instead of checking for a bunch of config files, let the user set the path using an enviornment variable. better yet, make the entire script configured by enviornment variables!

instead of checking for a bunch of config files, let the user set the path using an enviornment variable. better yet, make the entire script configured by enviornment variables!
. $XDG_CONFIG_HOME/al/config
elif [ -f "$HOME/.config/al/config"]; then
. $HOME/.config/al/config
elif [ -f "/etc/al/config" ]; then
. /etc/al/config
else
temp_location="/var/tmp"

9
settings Normal file
View file

@ -0,0 +1,9 @@
UnlockClient=true
UnlockStudio=false
FPSCapValues=[30.000000, 60.000000, 75.000000, 120.000000, 144.000000, 165.000000, 240.000000, 360.000000]
FPSCapSelection=0
FPSCap=0.000000
CheckForUpdates=true
NonBlockingErrors=true
SilentErrors=false
QuickStart=false