You are not logged in.

#1 2010-06-13 23:26:48

PReP
Member
From: Sweden
Registered: 2010-06-13
Posts: 359
Website

Openbox->XBMC - Opens on "wrong" desktop (Solved)

Hello Arch-People.

I am having an irritating problem getting xbmc behave as i want it in my openbox eviroment.

In my setup (autostart.sh & rc.xml), I have 4 desktops:

#1 for emesene+convo-windows,
#2 for firefox,
#3 for the terminal

And then the fourth (#4) in which i want XBMC to start.
I have got it to be windowed and maximized (thus making my CTRL+Arrowkey switching between desks work)

What does not work for me though is having it autostart and come up on desktop 4,
- It always starts up on #1 for some reason, making a mess of my emesene-space smile

Here is some parts of rc.xml i think are most relevant, otherwise i'll just post the whole "shebang";

<desktops>
    <!-- this stuff is only used at startup, pagers allow you to change them
       during a session

       these are default values to use when other ones are not already set
       by other applications, or saved in your session

       use obconf if you want to change these without having to log out
       and back in -->
    <number>4</number>
    <firstdesk>1</firstdesk>
    <names>
      <!-- set names up here if you want to, like this:
    <name>-MSN-</name>
    <name>-NET-</name>
    <name>-SYS-</name>
    <name>-APP-</name>
     -->
    </names>
    <popupTime>300</popupTime>
    <!-- The number of milliseconds to show the popup for when switching
       desktops.  Set this to 0 to disable the popup. -->
  </desktops>
-->
<!-- xbmc -->
    <application name="xbmc">
      <focus>no</focus>
      <desktop>4</desktop>
      <decor>no</decor>
      <maximized>no</maximized>
    </application>
<!-- konsole -->
    <application name="konsole">
      <focus>no</focus>
      <desktop>3</desktop>
      <decor>no</decor>
      <maximized>yes</maximized>
    </application>
 <!-- firefox -->
    <application name="firefox">
      <focus>yes</focus>
      <desktop>2</desktop>
      <decor>no</decor>
      <maximized>yes</maximized>
    </application>
   <!-- emesene -->
    <application name="emesene">
      <focus>no</focus>
      <desktop>1</desktop>
      <decor>yes</decor>
      <maximized>no</maximized>
    </application>
   </applications>
</openbox_config>

I cannot figure out what to do, since for what i can tell i have set xbmc-startup here the same
way as everything else that actually comes up where i want it.

If anyone has any suggestions or input that would be greatly appreciated
Thanks on beforehand (Note: that does not rid you of a possible thanks afterwards aswell tongue)

*clueless lizard scratches his head* smile

Last edited by PReP (2011-02-24 16:10:07)


. Main: Intel Core i5 6600k @ 4.4 Ghz, 16 GB DDR4 XMP, Gefore GTX 970 (Gainward Phantom) - Arch Linux 64-Bit
. Server: Intel Core i5 2500k @ 3.9 Ghz, 8 GB DDR2-XMP RAM @ 1600 Mhz, Geforce GTX 570 (Gainward Phantom) - Arch Linux 64-Bit
. Body: Estrogen @ 90%, Testestorone @ 10% (Not scientific just out-of-my-guesstimate-brain)

Offline

#2 2010-06-14 06:18:11

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: Openbox->XBMC - Opens on "wrong" desktop (Solved)

xprop returns:

WM_CLASS(STRING) = "xbmc.bin", "xbmc.bin"

Hence:

 <application name="xbmc.bin">
      <focus>no</focus>
      <desktop>4</desktop>
      <decor>no</decor>
      <maximized>no</maximized>
    </application>

PS: from /etc/xdg/openbox/rc.xml:

<application name="first element of window's WM_CLASS property (see xprop)"
              class="second element of window's WM_CLASS property (see xprop)"
               role="the window's WM_WINDOW_ROLE property (see xprop)">
               type="the window's _NET_WM_WINDOW_TYPE (if unspecified, then it is dialog for child windows)">

Last edited by DonVla (2010-06-14 06:20:29)

Offline

#3 2010-06-14 08:43:00

PReP
Member
From: Sweden
Registered: 2010-06-13
Posts: 359
Website

Re: Openbox->XBMC - Opens on "wrong" desktop (Solved)

Thank you DonVla!

I did not "catch" xbmc, or properly mentioned it's executable then (due to the .bin part)?
And this also gives me something to read up on (xprop).

*lizard goes happily away to remedy his problem and learn more*


. Main: Intel Core i5 6600k @ 4.4 Ghz, 16 GB DDR4 XMP, Gefore GTX 970 (Gainward Phantom) - Arch Linux 64-Bit
. Server: Intel Core i5 2500k @ 3.9 Ghz, 8 GB DDR2-XMP RAM @ 1600 Mhz, Geforce GTX 570 (Gainward Phantom) - Arch Linux 64-Bit
. Body: Estrogen @ 90%, Testestorone @ 10% (Not scientific just out-of-my-guesstimate-brain)

Offline

#4 2010-06-14 09:52:02

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: Openbox->XBMC - Opens on "wrong" desktop (Solved)

PReP wrote:

Thank you DonVla!

I did not "catch" xbmc, or properly mentioned it's executable then (due to the .bin part)?
And this also gives me something to read up on (xprop).

You don't need the name of the executable, but the "window name". Openbox looks for opened windows and pins them to the wanted desktop.
That's why the xprop (X properties) output is needed.

PS: "I am the lizard king, I can do anything!" wink http://www.youtube.com/watch?v=R6EnwYKNAiA

Last edited by DonVla (2010-06-14 09:54:02)

Offline

#5 2010-06-16 14:07:07

PReP
Member
From: Sweden
Registered: 2010-06-13
Posts: 359
Website

Re: Openbox->XBMC - Opens on "wrong" desktop (Solved)

Haha tongue

That was a fun coincidence with the doors there . smile


. Main: Intel Core i5 6600k @ 4.4 Ghz, 16 GB DDR4 XMP, Gefore GTX 970 (Gainward Phantom) - Arch Linux 64-Bit
. Server: Intel Core i5 2500k @ 3.9 Ghz, 8 GB DDR2-XMP RAM @ 1600 Mhz, Geforce GTX 570 (Gainward Phantom) - Arch Linux 64-Bit
. Body: Estrogen @ 90%, Testestorone @ 10% (Not scientific just out-of-my-guesstimate-brain)

Offline

#6 2010-06-16 17:54:51

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: Openbox->XBMC - Opens on "wrong" desktop (Solved)

BTW, I totally forgot. There is obapps: http://aur.archlinux.org/packages.php?ID=37166
It even sets the class/name/etc automatically for your application settings.

Offline

#7 2010-06-17 13:54:38

PReP
Member
From: Sweden
Registered: 2010-06-13
Posts: 359
Website

Re: Openbox->XBMC - Opens on "wrong" desktop (Solved)

Grand. thanks for the link, will check that script out smile


. Main: Intel Core i5 6600k @ 4.4 Ghz, 16 GB DDR4 XMP, Gefore GTX 970 (Gainward Phantom) - Arch Linux 64-Bit
. Server: Intel Core i5 2500k @ 3.9 Ghz, 8 GB DDR2-XMP RAM @ 1600 Mhz, Geforce GTX 570 (Gainward Phantom) - Arch Linux 64-Bit
. Body: Estrogen @ 90%, Testestorone @ 10% (Not scientific just out-of-my-guesstimate-brain)

Offline

#8 2011-02-24 13:59:01

PReP
Member
From: Sweden
Registered: 2010-06-13
Posts: 359
Website

Re: Openbox->XBMC - Opens on "wrong" desktop (Solved)

I just figured that i would put an (solved) on this thread in the usual fashion - but perhaps users cannot do so? smile

It was fixed by getting the correct WM_CLASS/PROGRAM by using xprop, thanks to DonVla.

---

A nice feature though, would be if it is possible to "hack in" for fluxbb would be a "solved" checkbox for the thread-starter,
that adds (solved) to the title smoothly. smile


. Main: Intel Core i5 6600k @ 4.4 Ghz, 16 GB DDR4 XMP, Gefore GTX 970 (Gainward Phantom) - Arch Linux 64-Bit
. Server: Intel Core i5 2500k @ 3.9 Ghz, 8 GB DDR2-XMP RAM @ 1600 Mhz, Geforce GTX 570 (Gainward Phantom) - Arch Linux 64-Bit
. Body: Estrogen @ 90%, Testestorone @ 10% (Not scientific just out-of-my-guesstimate-brain)

Offline

#9 2011-02-24 14:08:48

jdarnold
Member
From: Medford MA USA
Registered: 2009-12-15
Posts: 485
Website

Re: Openbox->XBMC - Opens on "wrong" desktop (Solved)

You just edit the first post and that lets you change the subject

Last edited by jdarnold (2011-02-24 14:13:17)

Offline

#10 2011-02-24 16:10:37

PReP
Member
From: Sweden
Registered: 2010-06-13
Posts: 359
Website

Re: Openbox->XBMC - Opens on "wrong" desktop (Solved)

Ah, thanks a bunch smile


. Main: Intel Core i5 6600k @ 4.4 Ghz, 16 GB DDR4 XMP, Gefore GTX 970 (Gainward Phantom) - Arch Linux 64-Bit
. Server: Intel Core i5 2500k @ 3.9 Ghz, 8 GB DDR2-XMP RAM @ 1600 Mhz, Geforce GTX 570 (Gainward Phantom) - Arch Linux 64-Bit
. Body: Estrogen @ 90%, Testestorone @ 10% (Not scientific just out-of-my-guesstimate-brain)

Offline

Board footer

Powered by FluxBB