Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: elrick on April 30, 2014, 01:56:59 AM

Title: How to run one instance of application at time or disable minimize in openbox WM
Post by: elrick on April 30, 2014, 01:56:59 AM
Hi guys,

this is multi thread topic but it all goes to one point, so my question is: is it possible to disable minimize option so application always stay on top and how to stop people from opening one application multiple times.
Title: Re: Run one application at time, disable minimize
Post by: curaga on April 30, 2014, 02:27:31 AM
Minimize and always-on-top depend on the WM you use. In NetWM-compliant WMs, your application will request no minimization button, and to stay always on top. In non-complicant WMs, the WM decides.

Not opening an application multiple times is usually done in your application code by using a lock file. See how Firefox, Opera, etc do so.
Title: Re: How to run one instance of application at time or disable minimize in openbox WM
Post by: elrick on April 30, 2014, 08:09:39 AM
OK, that works for all applications, disable minimize, maximixe, close buttons will be gone ,  rc.xml must be edited:

<applications>

  <application class="*" type="normal">
    <decor>NO</decor>
   <position force="yes">
         <x>center</x>
         <y>center</y>
         </position>
  </application>

</applications>