mirror of
https://github.com/alexkay/spek.git
synced 2025-04-19 01:47:37 +03:00
[osx] Bundle fixes
This commit is contained in:
parent
3d2ddd015d
commit
68e59cd5ed
@ -53,6 +53,31 @@ EOF
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# mkdir -p "$SPEK_CONFIG_DIR"
|
||||
mkdir -p "$SPEK_CONFIG_DIR"
|
||||
|
||||
if [ -f "$RES_DIR/first-run" ]; then
|
||||
echo "Appears to be first run of this application bundle."
|
||||
rm -f -- "$RES_DIR/first-run"
|
||||
PREVIOUS_APP_ROOT=""
|
||||
else
|
||||
PREVIOUS_APP_ROOT="$(cat "$SPEK_CONFIG_DIR/app-bundle-location" 2>/dev/null)"
|
||||
fi
|
||||
|
||||
if [ ! "$APP_ROOT" = "$PREVIOUS_APP_ROOT" ]; then
|
||||
echo "Application bundle has moved. Adjusting bundle..."
|
||||
|
||||
# Adjust config files that need absolute paths to things
|
||||
# in the bundle (e.g. pango, GDK pixbuf loaders...)
|
||||
IFS=$'\n'
|
||||
for file in $(find "$ETC_DIR" -name \*.in); do
|
||||
sed "s|\${APP_RESOURCES}|${RES_DIR}|g" \
|
||||
< "${file}" \
|
||||
> "${file%.in}"
|
||||
done
|
||||
unset IFS
|
||||
|
||||
# Store the new location of the bundle
|
||||
echo "$APP_ROOT" > "$SPEK_CONFIG_DIR/app-bundle-location"
|
||||
fi
|
||||
|
||||
exec -a $SPEK_EXEC_NAME "$SPEK_BIN"
|
||||
|
@ -257,7 +257,7 @@ style "murrine-radiocheck" = "murrine-default" {
|
||||
}
|
||||
|
||||
style "smaller-text" {
|
||||
font_name = "7"
|
||||
# font_name = "7"
|
||||
}
|
||||
|
||||
style "handle" {
|
||||
|
Loading…
x
Reference in New Issue
Block a user