Add project-tools #142
10
scripts/project-helper-tools/install_desktop_file.sh
Normal file
10
scripts/project-helper-tools/install_desktop_file.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
PROJECT_NAME="Pets"
|
||||||
|
DESKTOP_FILE_DST="$HOME/.local/share/applications/blender_$PROJECT_NAME.desktop"
|
||||||
|
BLENDER_BIN_PATH=$(realpath ../../local/blender/linux/blender)
|
||||||
|
|
||||||
|
cp ../../local/blender/linux/blender.desktop $DESKTOP_FILE_DST
|
||||||
|
|
||||||
|
# Update the .desktop file data
|
||||||
|
sed -i -e "s:Exec=blender:Exec=$BLENDER_BIN_PATH:" -e "s:Blender:Blender $PROJECT_NAME:" "$DESKTOP_FILE_DST"
|
Loading…
Reference in New Issue
Block a user