Update install.sh
Adding Desktop directory check.
This commit is contained in:
parent
6d1a0d88e0
commit
1c2d7033f0
@ -327,6 +327,7 @@ compile_vuejs() {
|
|||||||
|
|
||||||
create_desktop() {
|
create_desktop() {
|
||||||
# Create desktop icon to lauch TinyCheck in a browser
|
# Create desktop icon to lauch TinyCheck in a browser
|
||||||
|
if [[ -d "/home/$CURRENT_USER/Desktop/" ]]; then
|
||||||
echo -e "\e[39m[+] Create Desktop icon under /home/${CURRENT_USER}/Desktop\e[39m"
|
echo -e "\e[39m[+] Create Desktop icon under /home/${CURRENT_USER}/Desktop\e[39m"
|
||||||
cat >"/home/$CURRENT_USER/Desktop/tinycheck.desktop" <<EOL
|
cat >"/home/$CURRENT_USER/Desktop/tinycheck.desktop" <<EOL
|
||||||
#!/usr/bin/env xdg-open
|
#!/usr/bin/env xdg-open
|
||||||
@ -340,6 +341,7 @@ Name=TinyCheck
|
|||||||
Comment=Launcher for the TinyCheck frontend
|
Comment=Launcher for the TinyCheck frontend
|
||||||
Icon=/usr/share/tinycheck/app/frontend/src/assets/icon.png
|
Icon=/usr/share/tinycheck/app/frontend/src/assets/icon.png
|
||||||
EOL
|
EOL
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
cleaning() {
|
cleaning() {
|
||||||
|
Loading…
Reference in New Issue
Block a user