Closed seletskiy closed 10 years ago
Yes, this is a side effect of how psd tests for a running browser... see line 363. Basically, any process that contains 'chrome' is flagged. I'm not sure how to make the check more specific... on my system, chromium runs /usr/lib/chromium/chrome-sandbox
but I do not know if that is universal across distros.
Nope, it's not universal at all...
Just for now I've resolved my specific issue by changing execution order,
so my custom program started after psd
.
The only choice I see is to provide special configuration parameter to allow user specify pattern by himself.
On Sat, Jul 26, 2014 at 2:52 AM, graysky notifications@github.com wrote:
Yes, this is a side effect of how psd tests for a running browser... see line 363. Basically, any process that contains 'chrome' is flagged. I'm not sure how to make the check more specific... on my system, chromium runs /usr/lib/chromium/chrome-sandbox but I do not know if that is universal across distros.
— Reply to this email directly or view it on GitHub https://github.com/graysky2/profile-sync-daemon/issues/85#issuecomment-50196458 .
Stanislav Seletskiy
You've done this in your_program.service I assume?
Kind of that. I've relied upon that psd
is wanted by multi-user.target, and my program wanted by basic.target.
OK. I will close this and add to the known bugs since I don't know of a general way to detect the browser running. Thanks for reporting it.
https://github.com/graysky2/profile-sync-daemon/commit/07b6e2c90995b1212b4e6880d070193b86393351
Good, thanks!
I have daemon called
chrome-editor
, that allows me to edit textarea contents directly invim
(that's the way I'm typing this message).But when I'm trying to launch
psd
, it fails with message thatgoogle-chrome
already launched, so it can't start. But browser by itself is not launched,psd
get confused and muffedchrome-editor
with browser.