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
template:
src: templates/update.sh.j2
@ -12,4 +17,4 @@
- name: Create app info for VSCode URL handler
template:
src: templates/code-url.desktop.j2
dest: ~/.local/share/visual-studio-code-insiders-url-handler.desktop
dest: ~/.local/share/visual-studio-code-insiders-url-handler.desktop

View file

@ -26,6 +26,6 @@ fi
# Check for *.desktop
if ! ls /usr/share/applications | grep visual-studio-code; then
echo ">>> Installing desktop files";
DIRECTORY=/home/mfocko/git/mfocko/dotfiles/code-insiders
sudo cp $DIRECTORY/*.desktop /usr/share/applications/;
PATH_TO_APPS=/home/mfocko/.local/share/visual-studio-code-insiders
sudo cp $PATH_TO_APPS{,-url-handler}.desktop /usr/share/applications/;
fi