Announcement

Collapse
No announcement yet.

Tricking Virtualbox into using Plasma Netbook.

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Tricking Virtualbox into using Plasma Netbook.

    Does anyone know how kubuntu decides which UI it gives you? It auto matically detected my Netbook to use Plasma Netbook, yet using the same .iso and same RAM, lower VRAM and a single CPU it still uses the standard UI.

    I release I can switch after the install but it has be curious. Anyone have an idea?

    #2
    Re: Tricking Virtualbox into using Plasma Netbook.

    If you have small screen resolution (height < 700) then system will start plasma-netbook instead of plasma-desktop as you can see in the code snippet below (/usr/bin/startkde):

    Code:
    # In Kubuntu start plasma-netbook if the screen is small or if "netbook" parameter were passed to startkde.
    if [ -e /usr/share/kubuntu-netbook-default-settings/share/autostart/plasma-netbook.desktop ] ; then
     HEIGHT=`xdpyinfo | grep dimensions | awk '{print $2}' | sed s,.*x,,`
     CDROM=`udisks --dump | grep optical_cd`
     if `laptop-detect` && [ $HEIGHT -lt 700 ] && [ $HEIGHT -gt 0 ] && [ -z $CDROM ] || [ $1 = "netbook" ]; then
      if [ ! -e ~/.config/autostart/plasma-netbook.desktop ] || `grep -q Hidden=false ~/.config/autostart/plasma-netbook.desktop`; then
       echo Small screen resolution detected, using plasma-netbook;
       export KDEDIRS=/usr/share/kubuntu-netbook-default-settings/:/usr/share/kubuntu-default-settings/kde4-profile/default/
      fi
     fi
    fi
    However you can override this behaviour in autostart settings:
    Code:
    kcmshell4 autostart
    [img width=400 height=278]http://i.imgur.com/1YnV7.jpg[/img]
    ASROCK Z87 Pro4 - i5 4670K - R9 270x ☞ Triple Boot: KDE NEON ★ Windows 10 ★ Windows 7

    Comment

    Working...
    X