From b4617fc6a956a871709b37ee9b64333a80f4c84c Mon Sep 17 00:00:00 2001 From: Ryan Hughes Date: Thu, 4 Jun 2026 18:43:48 -0400 Subject: [PATCH] Sync visual-studio-code-bin AUR resources --- .gitignore | 1 - .../code-url-handler.desktop.in | 12 ++++++++ .../code-workspace.xml.in | 7 +++++ .../visual-studio-code-bin/code.desktop.in | 28 +++++++++++++++++++ 4 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 pkgbuilds/visual-studio-code-bin/code-url-handler.desktop.in create mode 100644 pkgbuilds/visual-studio-code-bin/code-workspace.xml.in create mode 100644 pkgbuilds/visual-studio-code-bin/code.desktop.in diff --git a/.gitignore b/.gitignore index 07b6c6a..90d494f 100644 --- a/.gitignore +++ b/.gitignore @@ -17,7 +17,6 @@ pkgbuilds/*/*.AppImage pkgbuilds/*/*.log pkgbuilds/*/*.sig pkgbuilds/*/*.zst -pkgbuilds/*/*.in pkgbuilds/*/.xml pkgbuilds/*/*~ pkgbuilds/*/*.swp diff --git a/pkgbuilds/visual-studio-code-bin/code-url-handler.desktop.in b/pkgbuilds/visual-studio-code-bin/code-url-handler.desktop.in new file mode 100644 index 0000000..e85bcec --- /dev/null +++ b/pkgbuilds/visual-studio-code-bin/code-url-handler.desktop.in @@ -0,0 +1,12 @@ +[Desktop Entry] +Name=@@NAME_LONG@@ - URL Handler +Comment=Code Editing. Redefined. +GenericName=Text Editor +Exec=@@EXEC@@ --open-url %U +Icon=@@ICON@@ +Type=Application +NoDisplay=true +StartupNotify=true +Categories=Utility;TextEditor;Development;IDE; +MimeType=x-scheme-handler/@@URLPROTOCOL@@; +Keywords=vscode; \ No newline at end of file diff --git a/pkgbuilds/visual-studio-code-bin/code-workspace.xml.in b/pkgbuilds/visual-studio-code-bin/code-workspace.xml.in new file mode 100644 index 0000000..1050449 --- /dev/null +++ b/pkgbuilds/visual-studio-code-bin/code-workspace.xml.in @@ -0,0 +1,7 @@ + + + + @@NAME_LONG@@ Workspace + + + \ No newline at end of file diff --git a/pkgbuilds/visual-studio-code-bin/code.desktop.in b/pkgbuilds/visual-studio-code-bin/code.desktop.in new file mode 100644 index 0000000..75c8a13 --- /dev/null +++ b/pkgbuilds/visual-studio-code-bin/code.desktop.in @@ -0,0 +1,28 @@ +[Desktop Entry] +Name=@@NAME_LONG@@ +Comment=Code Editing. Redefined. +GenericName=Text Editor +Exec=@@EXEC@@ %F +Icon=@@ICON@@ +Type=Application +StartupNotify=false +StartupWMClass=@@NAME_SHORT@@ +Categories=TextEditor;Development;IDE; +MimeType=application/x-@@NAME@@-workspace; +Actions=new-empty-window; +Keywords=vscode; + +[Desktop Action new-empty-window] +Name=New Empty Window +Name[cs]=Nové prázdné okno +Name[de]=Neues leeres Fenster +Name[es]=Nueva ventana vacía +Name[fr]=Nouvelle fenêtre vide +Name[it]=Nuova finestra vuota +Name[ja]=新しい空のウィンドウ +Name[ko]=새 빈 창 +Name[ru]=Новое пустое окно +Name[zh_CN]=新建空窗口 +Name[zh_TW]=開新空視窗 +Exec=@@EXEC@@ --new-window %F +Icon=@@ICON@@ \ No newline at end of file