mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 11:53:49 +07:00
OPENIDE #165 Error when creating icon via "Create Desktop Entry" action
(cherry picked from commit c5ed66edd73b57169ab17868705af5b0ee067fab)
This commit is contained in:
@@ -146,7 +146,7 @@ public final class CreateDesktopEntryAction extends DumbAwareAction implements A
|
|||||||
var script = ExecUtil.createTempExecutableScript(
|
var script = ExecUtil.createTempExecutableScript(
|
||||||
"create_desktop_entry_", ".sh",
|
"create_desktop_entry_", ".sh",
|
||||||
"#!/bin/sh\n" +
|
"#!/bin/sh\n" +
|
||||||
"xdg-desktop-menu install --novendor --mode system '" + entryFile + "' && xdg-desktop-menu forceupdate --mode system\n");
|
"xdg-desktop-menu install --mode system '" + entryFile + "' && xdg-desktop-menu forceupdate --mode system\n");
|
||||||
try {
|
try {
|
||||||
exec(new GeneralCommandLine(script.getPath()), ApplicationBundle.message("desktop.entry.sudo.prompt"));
|
exec(new GeneralCommandLine(script.getPath()), ApplicationBundle.message("desktop.entry.sudo.prompt"));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ import javax.swing.JComponent
|
|||||||
import javax.swing.border.Border
|
import javax.swing.border.Border
|
||||||
import kotlin.math.roundToInt
|
import kotlin.math.roundToInt
|
||||||
|
|
||||||
private const val VENDOR_PREFIX = ""
|
private const val VENDOR_PREFIX = "openide-"
|
||||||
private var appIcons: MutableList<Image?>? = null
|
private var appIcons: MutableList<Image?>? = null
|
||||||
|
|
||||||
@Volatile
|
@Volatile
|
||||||
|
|||||||
Reference in New Issue
Block a user