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*

4
  • 1
    I'm not in front of an X11 session right now, but I suspect you're on the wrong path by trying to send a PID to xprop -id... Commented Nov 4, 2018 at 21:11
  • @JeffSchaller i've been stuck on this for several days. now.... i have to start the program set and get that var in the same time somehow.. I have no idea what else i could do.. Thanks Commented Nov 4, 2018 at 21:14
  • I get the feeling that you're trying to compress too many things together. Is it right that you want to (1) start gedit, then (2) use xprop on that gedit window? Commented Nov 4, 2018 at 21:25
  • @JeffSchaller Yes, that's right! - Looking at my code i think i noticed what's my error... I try to pass the PID to xprop -id instead of the window ID - i might need to add one more nested level to extract that window ID first and pass that from the process ID... ill see if i can make it work right now! Commented Nov 4, 2018 at 21:31