We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f764a0 commit 38056e4Copy full SHA for 38056e4
src/otherCmd.ts
@@ -88,7 +88,7 @@ export function startProgram(
88
let cmd;
89
let args = [];
90
if (desktopFilePath) {
91
- executableArgs = (executableArgs) ? ` ${executableArgs}`: "";
+ executableArgs = executableArgs ? ` ${executableArgs}` : "";
92
cmd = `awk`;
93
args.push(
94
`/^Exec=/ {sub("^Exec=", ""); gsub(" ?%[cDdFfikmNnUuv]", "${executableArgs}"); exit system($0)}`
@@ -98,7 +98,9 @@ export function startProgram(
98
const parsedCmd = parseCmdArgs(executableFile);
99
cmd = parsedCmd[0];
100
args = parsedCmd[1];
101
- args = args.concat([executableArgs]);
+ if (executableArgs) {
102
+ args = args.concat([executableArgs]);
103
+ }
104
}
105
106
return new Promise(fulfill => {
0 commit comments