vscode: Don't hardcode icon
This also allows people to use a vscode icon that is shipped with their theme. (provided it is called code) Fixes #83846
This commit is contained in:
parent
14565eb2b3
commit
0bb661d512
@ -25,7 +25,7 @@ in
|
|||||||
comment = "Code Editing. Redefined.";
|
comment = "Code Editing. Redefined.";
|
||||||
genericName = "Text Editor";
|
genericName = "Text Editor";
|
||||||
exec = executableName;
|
exec = executableName;
|
||||||
icon = "@out@/share/pixmaps/code.png";
|
icon = "code";
|
||||||
startupNotify = "true";
|
startupNotify = "true";
|
||||||
categories = "Utility;TextEditor;Development;IDE;";
|
categories = "Utility;TextEditor;Development;IDE;";
|
||||||
mimeType = "text/plain;inode/directory;";
|
mimeType = "text/plain;inode/directory;";
|
||||||
@ -37,7 +37,7 @@ in
|
|||||||
[Desktop Action new-empty-window]
|
[Desktop Action new-empty-window]
|
||||||
Name=New Empty Window
|
Name=New Empty Window
|
||||||
Exec=${executableName} --new-window %F
|
Exec=${executableName} --new-window %F
|
||||||
Icon=@out@/share/pixmaps/code.png
|
Icon=code
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -47,7 +47,7 @@ in
|
|||||||
comment = "Code Editing. Redefined.";
|
comment = "Code Editing. Redefined.";
|
||||||
genericName = "Text Editor";
|
genericName = "Text Editor";
|
||||||
exec = executableName + " --open-url %U";
|
exec = executableName + " --open-url %U";
|
||||||
icon = "@out@/share/pixmaps/code.png";
|
icon = "code";
|
||||||
startupNotify = "true";
|
startupNotify = "true";
|
||||||
categories = "Utility;TextEditor;Development;IDE;";
|
categories = "Utility;TextEditor;Development;IDE;";
|
||||||
mimeType = "x-scheme-handler/vscode;";
|
mimeType = "x-scheme-handler/vscode;";
|
||||||
@ -83,10 +83,8 @@ in
|
|||||||
ln -s $out/lib/vscode/bin/${executableName} $out/bin
|
ln -s $out/lib/vscode/bin/${executableName} $out/bin
|
||||||
|
|
||||||
mkdir -p $out/share/applications
|
mkdir -p $out/share/applications
|
||||||
substitute $desktopItem/share/applications/${executableName}.desktop $out/share/applications/${executableName}.desktop \
|
ln -s $desktopItem/share/applications/${executableName}.desktop $out/share/applications/${executableName}.desktop
|
||||||
--subst-var out
|
ln -s $urlHandlerDesktopItem/share/applications/${executableName}-url-handler.desktop $out/share/applications/${executableName}-url-handler.desktop
|
||||||
substitute $urlHandlerDesktopItem/share/applications/${executableName}-url-handler.desktop $out/share/applications/${executableName}-url-handler.desktop \
|
|
||||||
--subst-var out
|
|
||||||
|
|
||||||
mkdir -p $out/share/pixmaps
|
mkdir -p $out/share/pixmaps
|
||||||
cp $out/lib/vscode/resources/app/resources/linux/code.png $out/share/pixmaps/code.png
|
cp $out/lib/vscode/resources/app/resources/linux/code.png $out/share/pixmaps/code.png
|
||||||
|
Loading…
x
Reference in New Issue
Block a user