Hi, I was trying AppAnvil (compiled from source and installed in /usr/local/bin/) and i noticed this bug: the program would not display any profile or processes, and this error would come up:
Error calling 'pkexec'. Cannot run program aa-caller: No such file or directory
i.e. pkexec cannot find the aa-caller binary in /usr/local/bin.
The following line in command_caller.cc (CommandCaller::call_command):
Hi, I was trying AppAnvil (compiled from source and installed in /usr/local/bin/) and i noticed this bug: the program would not display any profile or processes, and this error would come up:
i.e. pkexec cannot find the aa-caller binary in /usr/local/bin.
The following line in command_caller.cc (CommandCaller::call_command):
doesn't work because the envp parameter of Glib::spawn_sync expects a vector of environment variables (with the syntax variable=value)
This pull request fixes the problem by setting PATH correctly for spawned processes.