<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Sep 1, 2015 at 3:22 PM, James Stortz <span dir="ltr"><<a href="mailto:james.ryan.stortz@gmail.com" target="_blank">james.ryan.stortz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)">Actually... it does! Or it *should*</div><div style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)"><br></div><div style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)">It has the same effect of renaming.</div><div style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)"><br></div><div style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)">But it turns out, with midori, as I may have suspected, the issue with it is it is tied into the loading of the config ("-c [cfg dir]")</div><div style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)"><br></div><div style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)">If I don't set any cfg it won't set the WM_CLASS, if I do set it, it will persist from the first instance.</div><div style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)"><br></div><div style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)">So, I'd still like a proper solution for consistent practice on openbox.</div></div></blockquote><div><br></div><div>Well, the right way to do it is to have the application set a different class/name/role hint for openbox to see. Anything else* is racey.</div><div><br></div><div>*You could use "startup notification" stuff to place it where you want it. Then you have to launch the app with a startup-notification-aware launcher than sets appropriate env vars for it and talks the protocol. <a href="http://standards.freedesktop.org/startup-notification-spec/startup-notification-latest.txt">http://standards.freedesktop.org/startup-notification-spec/startup-notification-latest.txt</a>  I don't know a good launcher that speaks this that would let you place a window on an arbitrary desktop of your choice. Also midori has to support it (if it's built on GTK/QT it should).</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 1, 2015 at 10:02 PM, Dana Jansens <span dir="ltr"><<a href="mailto:danakj@orodu.net" target="_blank">danakj@orodu.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Does linking the binary give it a diff class name?<div><br></div><div>ln -s /usr/bin/midori /usr/bin/midori.1</div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 1, 2015 at 3:00 PM, James Stortz <span dir="ltr"><<a href="mailto:james.ryan.stortz@gmail.com" target="_blank">james.ryan.stortz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)">Thanks.</div><div style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)"><br></div><div style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)">Each application instance has to be launched automatically. I'm launching 4 web browsers at startup and they need to each be on their own desktop workspace.</div><div style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)"><br></div><div style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)">After that, I want the browser to launch as normal.</div><div style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)"><br></div><div style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)">I thought I just had a way to do it, a simple little trick, but not working! </div><div style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)"><br></div><div style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)">mv /usr/bin/midori /usr/bin/midori.1</div><div style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)">midori.1 -c cfg &</div><div style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)"><br></div><div style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)">mv /usr/bin/midori.1 /usr/bin/midori.2</div><div style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)">midori.2 -c cfg &</div><div style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)"><br></div><div style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)">mv /usr/bin/midori.2 /usr/bin/midori</div><div style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)"><br></div><div style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)">That will change the WM_CLASS to midori.1 and midori.2. Actually kinda cool. Thought it would work, but again it's too fast. Didn't want to use sleep, but even when I tried that it oddly set both to midori.1, even though it was called with midori.2!</div><span><font color="#888888"><div style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)"><br></div><div style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)"><br></div><div style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)"><br></div><div style="font-family:'courier new',monospace;font-size:small;color:rgb(0,0,0)">James</div></font></span></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 1, 2015 at 9:33 PM, Ian Zimmerman <span dir="ltr"><<a href="mailto:itz@buug.org" target="_blank">itz@buug.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span>On 2015-09-01 20:52 +0000, James Stortz wrote:<br>
<br>
> Good evening! I need to know how to selectively open windows with temporary<br>
> options. It's easy enough to set them in the rc.xml, which is great! Any<br>
> suggestions as to what might be possible? Doesn't seem to be a programmatic<br>
> way to do it, like an API.<br>
><br>
</span><span>> For example, is it possible to set the _OB_CLASS or _OB_NAME or _OB_ROLE or<br>
> something before launching an app?<br>
<br>
</span>This is the type of question that's asking for:<br>
<br>
Why?<br>
<br>
If I know what you're really trying to do, I may have a better answer :-P<br>
<span><font color="#888888"><br>
--<br>
Please *no* private copies of mailing list or newsgroup messages.<br>
Rule 420: All persons more than eight miles high to leave the court.<br>
<br>
_______________________________________________<br>
openbox mailing list<br>
<a href="mailto:openbox@icculus.org" target="_blank">openbox@icculus.org</a><br>
<a href="http://icculus.org/mailman/listinfo/openbox" rel="noreferrer" target="_blank">http://icculus.org/mailman/listinfo/openbox</a></font></span></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
openbox mailing list<br>
<a href="mailto:openbox@icculus.org" target="_blank">openbox@icculus.org</a><br>
<a href="http://icculus.org/mailman/listinfo/openbox" rel="noreferrer" target="_blank">http://icculus.org/mailman/listinfo/openbox</a><br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
openbox mailing list<br>
<a href="mailto:openbox@icculus.org" target="_blank">openbox@icculus.org</a><br>
<a href="http://icculus.org/mailman/listinfo/openbox" rel="noreferrer" target="_blank">http://icculus.org/mailman/listinfo/openbox</a><br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
openbox mailing list<br>
<a href="mailto:openbox@icculus.org">openbox@icculus.org</a><br>
<a href="http://icculus.org/mailman/listinfo/openbox" rel="noreferrer" target="_blank">http://icculus.org/mailman/listinfo/openbox</a><br></blockquote></div><br></div></div>