diff --git a/crates/zed/resources/zed.desktop.in b/crates/zed/resources/zed.desktop.in index d629013ec82a12f4ed7494060349bf6a3f2a64bc..59eae4d0172a810fbf75e6cf6a7a345c43c5673a 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 cc4ce9fa1bdfa36b1d802c4ab7e6eab16d34fe2c..cd83d3413c645f770f01ea92d0bd9d69ec215198 100755 --- a/script/bundle-linux +++ b/script/bundle-linux @@ -82,6 +82,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