Fix VSCode installation
Closes #7 Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
parent
a44adf3325
commit
937c3f6263
2 changed files with 8 additions and 3 deletions
|
@ -1,4 +1,9 @@
|
||||||
---
|
---
|
||||||
|
- name: Create directories for VSCode
|
||||||
|
block:
|
||||||
|
- shell: mkdir -p ~/.local/bin
|
||||||
|
- shell: mkdir -p ~/.local/share
|
||||||
|
|
||||||
- name: Install VSCode script
|
- name: Install VSCode script
|
||||||
template:
|
template:
|
||||||
src: templates/update.sh.j2
|
src: templates/update.sh.j2
|
||||||
|
|
|
@ -26,6 +26,6 @@ fi
|
||||||
# Check for *.desktop
|
# Check for *.desktop
|
||||||
if ! ls /usr/share/applications | grep visual-studio-code; then
|
if ! ls /usr/share/applications | grep visual-studio-code; then
|
||||||
echo ">>> Installing desktop files";
|
echo ">>> Installing desktop files";
|
||||||
DIRECTORY=/home/mfocko/git/mfocko/dotfiles/code-insiders
|
PATH_TO_APPS=/home/mfocko/.local/share/visual-studio-code-insiders
|
||||||
sudo cp $DIRECTORY/*.desktop /usr/share/applications/;
|
sudo cp $PATH_TO_APPS{,-url-handler}.desktop /usr/share/applications/;
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue