Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maybe $delay_progs should be more strict? #21

Open
noway opened this issue Jul 19, 2014 · 0 comments
Open

Maybe $delay_progs should be more strict? #21

noway opened this issue Jul 19, 2014 · 0 comments

Comments

@noway
Copy link

noway commented Jul 19, 2014

Currently, it matching program by whole 'command line', except by just 'process name'.
So for example:

I have some program named bar in $delay_progs. This program is not running currently. I decided to open file with name 'foobar.sh' in vim:

ps ax | grep bar                                                    
 5678 pts/5    S+     0:00 vi foobar.sh
 5744 pts/1    S+     0:00 grep bar

And here is problem: lightsOn.sh would think that bar program running. But it's not, there are just something, that have string 'bar' in it's arguments.
Delaying the screensaver because a program on the delay list, "bar", is running...

Possible solutions:

  • Don't match $delay_progs by whole 'command line' (remove -f option in pgrep)
  • Do exact match for $delay_progs (add -x option to pgrep)

Also, if legacy is an issue, then this behavior may be implemented as optional.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant