WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How to run one instance of application at time or disable minimize in openbox WM  (Read 2182 times)

Offline elrick

  • Newbie
  • *
  • Posts: 13
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.
« Last Edit: April 30, 2014, 08:57:55 AM by elrick »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: Run one application at time, disable minimize
« Reply #1 on: April 30, 2014, 05: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.
The only barriers that can stop you are the ones you create yourself.

Offline elrick

  • Newbie
  • *
  • Posts: 13
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>
« Last Edit: May 01, 2014, 04:44:01 AM by elrick »