This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[SOLVED] I get blank desktop when I run full session

Tags: None
(comma "," separated)
Zayed
Registered Member
Posts
143
Karma
0
OS
Today, I try again to build kde from svn. Every thing goes OK till last step. When I try to run full session using this tutorial:
http://en.opensuse.org/KDE/Developing/G ... tart_KDE_4

I get first splash screen then blank desktop. Do I miss something?

I use opensuse11.1 by the way.


User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
I also build from SVN except I use a different method for logging in however.
My script is below, and assumes you are also building qt-copy.
You should be setting all variables it is setting in your login method.

Code: Select all
if [ -z "${KDE_ENV_SET}" ]; then
    # Change this to your kdedir setting in ~/.kdesvn-buildrc
    export KDEDIR="/opt/trunk-kde/kde"
    export KDEDIRS="${KDEDIR}"

    # Change this to your qtdir setting in ~/.kdesvn-buildrc
    export QTDIR="/opt/trunk-kde/qt"

    export PATH="${KDEDIR}/bin:${QTDIR}/bin:${PATH}"
    export LD_LIBRARY_PATH="${KDEDIR}/lib:${QTDIR}/lib"
    export CMAKE_PREFIX_PATH="${KDEDIR}:${QTDIR}"

    export KDEHOME="${HOME}/.kde4-trunk/"

    # Set the XDG data path, helps finding plugins, etc
    export XDG_DATA_DIRS="${KDEDIR}/share:${XDG_DATA_DIRS}"

    # Don't accidentally get sourced again.
    export KDE_ENV_SET=1
fi


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Zayed
Registered Member
Posts
143
Karma
0
OS
Thanks bcooksley for your replay, please bear with me. I'm newbie !
What I did is :
First : add new entry in the /usr/share/xsessions with name : kde4-svn-trunk.desktop and it has this:

Code: Select all
[Desktop Entry]
Encoding=UTF-8
Type=XSession
Exec=/usr/local/bin/kde4-launch
TryExec=/usr/local/bin/kde4-launch
Name=KDE 4 SVN Trunk
Comment=KDE 4 SVN Trunk


Second I add entry in the /usr/local/bin with name : kde4-launch and it has this:
Code: Select all
#!/bin/bash
eval `dbus-launch --auto-syntax`

# edit this line so that it refers to your copy of kde4-run-env
source  /home/kde-devel/.bashrc

/home/kde-devel/kde/bin/startkde


Moreover, I get kde and qt-copy in the /home/kde-devel/

So, I modify the kde4-launch to this:
Code: Select all
#!/bin/bash
eval `dbus-launch --auto-syntax`

# edit this line so that it refers to your copy of kde4-run-env

if [ -z "${KDE_ENV_SET}" ]; then
    # Change this to your kdedir setting in ~/.kdesvn-buildrc
    export KDEDIR="/home/kde-devel/kde"
    export KDEDIRS="${KDEDIR}"

    # Change this to your qtdir setting in ~/.kdesvn-buildrc
    export QTDIR="/home/kde-devel/qt-copy"

    export PATH="${KDEDIR}/bin:${QTDIR}/bin:${PATH}"
    export LD_LIBRARY_PATH="${KDEDIR}/lib:${QTDIR}/lib"
    export CMAKE_PREFIX_PATH="${KDEDIR}:${QTDIR}"

    export KDEHOME="${HOME}/.kde4/"

    # Set the XDG data path, helps finding plugins, etc
    export XDG_DATA_DIRS="${KDEDIR}/share:${XDG_DATA_DIRS}"

    # Don't accidentally get sourced again.
    export KDE_ENV_SET=1
fi

/home/kde-devel/kde/bin/startkde



Unfortunately I get same result.


Zayed
Registered Member
Posts
143
Karma
0
OS
Ok, I manage to get it work. My final kde4-launch looks like this:
Code: Select all
#!/bin/bash
eval `dbus-launch --auto-syntax`
export DBUS_SESSION_BUS_PID

# edit this line so that it refers to your copy of kde4-run-env

if [ -z "${KDE_ENV_SET}" ]; then
    # Change this to your kdedir setting in ~/.kdesvn-buildrc
    export KDEDIR="/home/kde-devel/kde"
    export KDEDIRS="${KDEDIR}"

    # Change this to your qtdir setting in ~/.kdesvn-buildrc
    export QTDIR="/home/kde-devel/qt-copy"

    export PATH="${KDEDIR}/bin:${QTDIR}/bin:${PATH}"
    export LD_LIBRARY_PATH="${KDEDIR}/lib:${QTDIR}/lib"
    export CMAKE_PREFIX_PATH="${KDEDIR}:${QTDIR}"

    export KDEHOME="${HOME}/.kde4/"

    # Set the XDG data path, helps finding plugins, etc
    export XDG_DATA_DIRS="${KDEDIR}/share:${XDG_DATA_DIRS}"

    # Don't accidentally get sourced again.
    export KDE_ENV_SET=1
fi

/home/kde-devel/kde/bin/startkde



and I add this on the top of my startkde:
Code: Select all
export KDEDIR=`kde4-config --prefix`
export LD_LIBRARY_PATH=$KDEDIR/lib
export PATH=$KDEDIR/bin/:$PATH
export KDEHOME=~/.kde4


Thanks every one !




Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], markhm, rblackwell, sethaaaa, Sogou [Bot], Yahoo [Bot]