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
|
||||
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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue