Skip to content

Commit 2711971

Browse files
authored
fix: use pidof instead of pgrep
NixOS wraps OBS into `.obs-wrapper`, which `pgrep -x obs` fails to find. since both `.obs-wrapper` and the `obs` command on other Linux distros run the same `obs` binary, `pidof` works more reliably
1 parent 026d2f5 commit 2711971

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

obs-control/Main.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ Item {
858858
Process {
859859
id: obsProbeProcess
860860
running: false
861-
command: ["pgrep", "-x", "obs"]
861+
command: ["pidof", "obs"]
862862
863863
onExited: function(exitCode) {
864864
const callbacks = root.obsProbeCallbacks

0 commit comments

Comments
 (0)