gyazo / Gyazo-for-Linux

Gyazo for Linux
http://gyazo.com
350 stars 104 forks source link

ps command error when running #121

Closed jdvalentine closed 5 years ago

jdvalentine commented 6 years ago

When I run Gyazo I get a crosshair, but selecting an area has no effect. I ran the tool from the terminal and got a ps error:


james@gamay:~$ gyazo
error: process ID list syntax error

Usage:
 ps [options]

 Try 'ps --help <simple|list|output|threads|misc|all>'
  or 'ps --help <s|l|o|t|m|a>'
 for additional help text.

For more details see ps(1).

^CTraceback (most recent call last):
    1: from /usr/bin/gyazo:56:in `<main>'
/usr/bin/gyazo:56:in `system': Interrupt

Looking at the code, I can see it calls:

ps -p #{pid} -o comm=

Which causes this error on my system - the process ID is not being picked up so the -p part of the command is invalid.