Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • Hi there! Your if clause ends with done instead of fi. Commented Dec 10, 2017 at 17:37
  • You're welcome. Happens to all of us occasionally! Commented Dec 10, 2017 at 17:41
  • 1
    It is not enough to check for the process; you have to check whether it already is accepting connections. You can check for a socket or for it being registered on dbus (depending on how the communication works). Commented Dec 10, 2017 at 19:49
  • I ran into the problem @HaukeLaging mentions; the loop would terminate because the PID had been created but the notification didn't appear because the application wasn't fully loaded. I'll investigate sockets etc. Commented Dec 10, 2017 at 20:39
  • @LoremIpsum I don't know very much about dbus but I found a few relevant posts, at least a couple of which seem to address the functionality that you're looking for - updated my post to include them. Commented Dec 11, 2017 at 1:14