Fix VSCode installation

Closes #7

Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
Matej Focko 2020-10-11 20:24:43 +02:00
parent a44adf3325
commit 937c3f6263
No known key found for this signature in database
GPG key ID: 8535F3BCF69B3D69
2 changed files with 8 additions and 3 deletions

View file

@ -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

View file

@ -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