From 5852199686906cb62188846f8a38150e79f55737 Mon Sep 17 00:00:00 2001 From: Xaver Hellauer Date: Mon, 4 Apr 2016 17:59:09 +0200 Subject: [PATCH] Add "new window" action to code.desktop In Gnome and Unity desktop (and maybe some others) this can be used to open a new Code window through right click on the launcher icon and then on "New Window". --- resources/linux/code.desktop | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/resources/linux/code.desktop b/resources/linux/code.desktop index 2724874adc0..bd3e9de466f 100644 --- a/resources/linux/code.desktop +++ b/resources/linux/code.desktop @@ -6,5 +6,13 @@ Exec=/usr/bin/@@NAME@@ %U Icon=@@NAME@@ Type=Application StartupNotify=true +StartupWMClass=@@NAME@@ Categories=Utility;TextEditor;Development;IDE; -MimeType=text/plain; \ No newline at end of file +MimeType=text/plain; +Actions=new-window; + +[Desktop Action new-window] +Name=New Window +Name[de]=Neues Fenster +Exec=/usr/bin/@@NAME@@ --new-window %U +Icon=@@NAME@@