forked from gpouilloux/gnome-shell-extension-docker
-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
The implementation of this GNOME shell plugin assumes that the process list binary ps is located at /bin/ps.
const cmdResult = await execCommand(["/bin/ps", "cax"]);Unfortunately, this is only the case on FHS compliant Linux distributions. Other distros, such as the popular NixOS have the executable somewhere else, e.g.
$ which ps
/run/current-system/sw/bin/psSymptoms
On NixOS, the widget displays the error message instead of container details. (Hightlighting added by me.)
Suggested Solution Approaches
One of:
- Simply refer to the executable as
ps(if possible, e.g. by spawning a shell) - Try to resolve the full path (if there is a utility function that searches the
PATHenvironment variable)
Th1nkK1D
Metadata
Metadata
Assignees
Labels
No labels