Skip to content

Commit 502cfbe

Browse files
authored
always drop priviledges when opening a directory (#518)
1 parent 3d02242 commit 502cfbe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Utility/TeeJee.System.vala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ namespace TeeJee.System{
115115
if (xdg_open_try_first && xdgAvailable){
116116
//try using xdg-open
117117
string cmd = "xdg-open '%s'".printf(escaped_dir_path);
118-
status = exec_script_async (cmd);
118+
status = TeeJee.ProcessHelper.exec_user_async(cmd);
119119
return (status == 0);
120120
}
121121

@@ -126,7 +126,7 @@ namespace TeeJee.System{
126126
}
127127

128128
string cmd = "%s '%s'".printf(app_name, escaped_dir_path);
129-
status = exec_script_async (cmd);
129+
status = TeeJee.ProcessHelper.exec_user_async(cmd);
130130

131131
if(status == 0) {
132132
return true;
@@ -136,7 +136,7 @@ namespace TeeJee.System{
136136
if (!xdg_open_try_first && xdgAvailable){
137137
//try using xdg-open
138138
string cmd = "xdg-open '%s'".printf(escaped_dir_path);
139-
status = exec_script_async (cmd);
139+
status = TeeJee.ProcessHelper.exec_user_async(cmd);
140140
return (status == 0);
141141
}
142142

0 commit comments

Comments
 (0)