mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-06-21 14:00:57 -04:00
Small fixes
This commit is contained in:
@@ -79,7 +79,10 @@ final class FileContextMenu extends ContextMenu {
|
||||
execute.setOnAction(event -> {
|
||||
ThreadHelper.runFailableAsync(() -> {
|
||||
ShellControl pc = model.getFileSystem().getShell().orElseThrow();
|
||||
pc.executeBooleanSimpleCommand(pc.getShellDialect().getMakeExecutableCommand(entry.getPath()));
|
||||
var e = pc.getShellDialect().getMakeExecutableCommand(entry.getPath());
|
||||
if (e != null) {
|
||||
pc.executeBooleanSimpleCommand(e);
|
||||
}
|
||||
var cmd = pc.command("\"" + entry.getPath() + "\"").prepareTerminalOpen();
|
||||
TerminalHelper.open(FilenameUtils.getBaseName(entry.getPath()), cmd);
|
||||
});
|
||||
@@ -91,7 +94,10 @@ final class FileContextMenu extends ContextMenu {
|
||||
executeInBackground.setOnAction(event -> {
|
||||
ThreadHelper.runFailableAsync(() -> {
|
||||
ShellControl pc = model.getFileSystem().getShell().orElseThrow();
|
||||
pc.executeBooleanSimpleCommand(pc.getShellDialect().getMakeExecutableCommand(entry.getPath()));
|
||||
var e = pc.getShellDialect().getMakeExecutableCommand(entry.getPath());
|
||||
if (e != null) {
|
||||
pc.executeBooleanSimpleCommand(e);
|
||||
}
|
||||
var cmd = ScriptHelper.createDetachCommand(pc, "\"" + entry.getPath() + "\"");
|
||||
pc.executeBooleanSimpleCommand(cmd);
|
||||
});
|
||||
|
||||
@@ -23,7 +23,6 @@ public class SentryErrorHandler {
|
||||
options.setEnableUncaughtExceptionHandler(false);
|
||||
options.setAttachServerName(false);
|
||||
// options.setDebug(true);
|
||||
options.setDist(XPipeDistributionType.get().getId());
|
||||
options.setRelease(AppProperties.get().getVersion());
|
||||
options.setEnableShutdownHook(false);
|
||||
options.setProguardUuid(AppProperties.get().getBuildUuid().toString());
|
||||
@@ -87,6 +86,7 @@ public class SentryErrorHandler {
|
||||
.toList();
|
||||
atts.forEach(attachment -> s.addAttachment(attachment));
|
||||
|
||||
s.setTag("dist", XPipeDistributionType.get().getId());
|
||||
s.setTag("developerMode", AppPrefs.get() != null ? AppPrefs.get().developerMode().getValue().toString() : "false");
|
||||
s.setTag("terminal", Boolean.toString(ee.isTerminal()));
|
||||
s.setTag("omitted", Boolean.toString(ee.isOmitted()));
|
||||
|
||||
@@ -98,8 +98,10 @@ public class ScriptHelper {
|
||||
|
||||
// processControl.executeSimpleCommand(type.getFileTouchCommand(file), "Failed to create script " + file);
|
||||
processControl.getShellDialect().createTextFileWriteCommand(processControl, content, file).execute();
|
||||
processControl.executeSimpleCommand(
|
||||
type.getMakeExecutableCommand(file), "Failed to make script " + file + " executable");
|
||||
var e = type.getMakeExecutableCommand(file);
|
||||
if (e != null) {
|
||||
processControl.executeSimpleCommand(e, "Failed to make script " + file + " executable");
|
||||
}
|
||||
return file;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user