Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
ximper-shell-notification-center
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
ximper-shell-notification-center
Commits
d0998d02
Commit
d0998d02
authored
Mar 03, 2025
by
Erik Reider
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed not being able to run multiple commands regression by #519
Thanks @jbeich for finding this bug
parent
046e895a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
functions.vala
src/functions.vala
+10
-6
No files found.
src/functions.vala
View file @
d0998d02
...
@@ -358,7 +358,7 @@ namespace SwayNotificationCenter {
...
@@ -358,7 +358,7 @@ namespace SwayNotificationCenter {
}
}
string
[]
argvp
;
string
[]
argvp
;
Shell
.
parse_argv
(
"/bin/sh -c
%s
"
.
printf
(
cmd
),
out
argvp
);
Shell
.
parse_argv
(
"/bin/sh -c
\"%s\"
"
.
printf
(
cmd
),
out
argvp
);
Pid
child_pid
;
Pid
child_pid
;
int
std_output
;
int
std_output
;
...
@@ -381,13 +381,17 @@ namespace SwayNotificationCenter {
...
@@ -381,13 +381,17 @@ namespace SwayNotificationCenter {
return
false
;
return
false
;
}
}
try
{
try
{
channel
.
read_line
(
out
res
,
null
,
null
);
if
(
channel
.
read_line
(
out
res
,
null
,
null
)
==
IOStatus
.
NORMAL
)
{
debug
(
"Exec output:\n%s"
,
res
);
}
else
{
res
=
""
;
}
return
true
;
return
true
;
}
catch
(
IOChannelError
e
)
{
}
catch
(
IOChannelError
e
)
{
stderr
.
printf
(
"stdout: IOChannelError: %s\n
"
,
e
.
message
);
warning
(
"stdout: IOChannelError: %s
"
,
e
.
message
);
return
false
;
return
false
;
}
catch
(
ConvertError
e
)
{
}
catch
(
ConvertError
e
)
{
stderr
.
printf
(
"stdout: ConvertError: %s\n
"
,
e
.
message
);
warning
(
"stdout: ConvertError: %s
"
,
e
.
message
);
return
false
;
return
false
;
}
}
});
});
...
@@ -400,12 +404,12 @@ namespace SwayNotificationCenter {
...
@@ -400,12 +404,12 @@ namespace SwayNotificationCenter {
end_status
=
status
;
end_status
=
status
;
execute_command
.
callback
();
execute_command
.
callback
();
});
});
// Waits until `
run_script
.callback()` is called above
// Waits until `
execute_command
.callback()` is called above
yield
;
yield
;
msg
=
res
;
msg
=
res
;
return
end_status
==
0
;
return
end_status
==
0
;
}
catch
(
Error
e
)
{
}
catch
(
Error
e
)
{
stderr
.
printf
(
"Run_Script Error: %s\n
"
,
e
.
message
);
warning
(
"Execute Command Error: %s
"
,
e
.
message
);
msg
=
e
.
message
;
msg
=
e
.
message
;
return
false
;
return
false
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment