mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 06:50:54 +07:00
OPENIDE #165 Error when creating icon via "Create Desktop Entry" action
(cherry picked from commit43b967691b) (cherry picked from commit16ce6de56e) (cherry picked from commitd079701081) (cherry picked from commitc308b2e4a8) (cherry picked from commitce1db72467)
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user