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
54664737
Verified
Commit
54664737
authored
Mar 26, 2026
by
Kirill Unitsaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
command-tile: fix SIGSEGV and env variable passing
parent
75007967
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
commandTile.vala
...ontrolCenter/widgets/quickSettings/tiles/commandTile.vala
+9
-3
functions.vala
src/functions.vala
+1
-6
No files found.
src/controlCenter/widgets/quickSettings/tiles/commandTile.vala
View file @
54664737
...
...
@@ -6,6 +6,9 @@ namespace XimperShellNotificationCenter.Widgets {
public
CommandTile
(
Json
.
Object
?
cfg
)
{
string
icon_name
=
"application-x-executable-symbolic"
;
string
label
=
""
;
string
cmd
=
""
;
string
ucmd
=
""
;
bool
initial_active
=
false
;
if
(
cfg
!=
null
)
{
string
?
i
=
cfg
.
get_string_member_with_default
(
...
...
@@ -18,15 +21,18 @@ namespace XimperShellNotificationCenter.Widgets {
}
else
{
warning
(
"Command tile missing 'label'"
);
}
c
omman
d
=
cfg
.
get_string_member_with_default
(
c
m
d
=
cfg
.
get_string_member_with_default
(
"command"
,
""
);
u
pdate_comman
d
=
cfg
.
get_string_member_with_default
(
u
cm
d
=
cfg
.
get_string_member_with_default
(
"update-command"
,
""
);
active
=
cfg
.
get_boolean_member_with_default
(
initial_
active
=
cfg
.
get_boolean_member_with_default
(
"active"
,
false
);
}
base
(
icon_name
,
label
);
command
=
cmd
;
update_command
=
ucmd
;
active
=
initial_active
;
}
public
override
void
on_toggle
()
{
...
...
src/functions.vala
View file @
54664737
...
...
@@ -304,12 +304,7 @@ namespace XimperShellNotificationCenter {
spawn_env
+=
additions
;
}
string
[]
argvp
;
Shell
.
parse_argv
(
"/bin/sh -c \"%s\""
.
printf
(
cmd
),
out
argvp
);
if
(
argvp
[
0
].
has_prefix
(
"~"
))
{
argvp
[
0
]
=
Environment
.
get_home_dir
()
+
argvp
[
0
].
substring
(
1
);
}
string
[]
argvp
=
{
"/bin/sh"
,
"-c"
,
cmd
};
Pid
child_pid
;
int
std_output
;
...
...
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