From ab83820b6ecd3d78b0925fae7a78f1d951436ff6 Mon Sep 17 00:00:00 2001 From: jansol Date: Mon, 8 Jul 2024 09:31:08 +0300 Subject: [PATCH] linux: Remove `StartupWMClass` from .desktop file, add `NewWorkspace` action (#13807) Release Notes: - N/A --- crates/zed/resources/zed.desktop.in | 5 ++++- script/bundle-linux | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/zed/resources/zed.desktop.in b/crates/zed/resources/zed.desktop.in index d629013ec8..59eae4d017 100644 --- a/crates/zed/resources/zed.desktop.in +++ b/crates/zed/resources/zed.desktop.in @@ -6,9 +6,12 @@ GenericName=Text Editor Comment=A high-performance, multiplayer code editor. TryExec=$APP_CLI StartupNotify=$DO_STARTUP_NOTIFY -StartupWMClass=$APP_ID Exec=$APP_CLI $APP_ARGS Icon=$APP_ICON Categories=Utility;TextEditor;Development;IDE; Keywords=zed; MimeType=text/plain;inode/directory; + +[Desktop Action NewWorkspace] +Exec=$APP_CLI --new $APP_ARGS +Name=Open a new workspace diff --git a/script/bundle-linux b/script/bundle-linux index f06d2497b3..711abf72fe 100755 --- a/script/bundle-linux +++ b/script/bundle-linux @@ -83,6 +83,7 @@ cp "crates/zed/resources/app-icon$suffix@2x.png" "${zed_dir}/share/icons/hicolor export DO_STARTUP_NOTIFY="true" export APP_CLI="zed" export APP_ICON="zed" +export APP_ARGS="%U" if [[ "$channel" == "preview" ]]; then export APP_NAME="Zed Preview" elif [[ "$channel" == "nightly" ]]; then