From ce1db724674b47df2b5193736c6e71b4bb47c491 Mon Sep 17 00:00:00 2001 From: Nikita Iarychenko Date: Wed, 16 Apr 2025 11:19:20 +0400 Subject: [PATCH] OPENIDE #165 Error when creating icon via "Create Desktop Entry" action (cherry picked from commit 43b967691b56275b15203ac7b799602532b1aa8e) (cherry picked from commit 16ce6de56eb599de6182295156870602032a8e9f) (cherry picked from commit d0797010817a1bb419cbd1ed8f349048ba13fb19) (cherry picked from commit c308b2e4a8840c3593f2f877450ca65878ea2717) --- .../com/intellij/ide/actions/CreateDesktopEntryAction.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platform/platform-impl/src/com/intellij/ide/actions/CreateDesktopEntryAction.java b/platform/platform-impl/src/com/intellij/ide/actions/CreateDesktopEntryAction.java index e3b78f196b3a..9820946c08e8 100644 --- a/platform/platform-impl/src/com/intellij/ide/actions/CreateDesktopEntryAction.java +++ b/platform/platform-impl/src/com/intellij/ide/actions/CreateDesktopEntryAction.java @@ -1,4 +1,7 @@ // Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. +// +// Modified by Nikita Iarychenko at 2025 as part of the OpenIDE project(https://openide.ru). +// Any modifications are available on the same license terms as the original source code. package com.intellij.ide.actions; import com.intellij.execution.ExecutionException; @@ -154,7 +157,7 @@ public final class CreateDesktopEntryAction extends DumbAwareAction implements A var script = ExecUtil.createTempExecutableScript( "create_desktop_entry_", ".sh", "#!/bin/sh\n" + - "xdg-desktop-menu install --mode system '" + entryFile + "' && xdg-desktop-menu forceupdate --mode system\n"); + "xdg-desktop-menu install --novendor --mode system '" + entryFile + "' && xdg-desktop-menu forceupdate --mode system\n"); try { exec(new GeneralCommandLine(script.getPath()), ApplicationBundle.message("desktop.entry.sudo.prompt")); }