mirror of
https://github.com/nikdoof/dotfiles.git
synced 2025-12-14 19:22:31 +00:00
[macos] Use the app bundle ID
This commit is contained in:
@@ -5,10 +5,11 @@ function update-dock() {
|
|||||||
app_name=$(echo "$entry" | cut -d $'\t' -f 1)
|
app_name=$(echo "$entry" | cut -d $'\t' -f 1)
|
||||||
app_path=$(echo "$entry" | cut -d $'\t' -f 2)
|
app_path=$(echo "$entry" | cut -d $'\t' -f 2)
|
||||||
app_type=$(echo "$entry" | cut -d $'\t' -f 3)
|
app_type=$(echo "$entry" | cut -d $'\t' -f 3)
|
||||||
|
bundle_id=$(echo "$entry" | cut -d $'\t' -f 5)
|
||||||
idx=$((idx+1))
|
idx=$((idx+1))
|
||||||
dockutil --no-restart -a "$app_path" > /dev/null 2>&1
|
dockutil --no-restart -a "$app_path" -l "$bundle_id" > /dev/null 2>&1
|
||||||
if [ "$app_type" = "persisentApps" ]; then
|
if [ "$app_type" = "persisentApps" ]; then
|
||||||
dockutil --move "$app_name" -p $idx
|
dockutil --move "$app_name" -l "$bundle_id" -p $idx
|
||||||
fi
|
fi
|
||||||
done < ~/.dotfiles/macos/.config/dockConfig.txt
|
done < ~/.dotfiles/macos/.config/dockConfig.txt
|
||||||
killall Dock
|
killall Dock
|
||||||
|
|||||||
Reference in New Issue
Block a user