![]() Registered Member ![]()
|
I just finished to configure/build all, i'm trying to start xephyr to embed kde4 in my kde3, but i have these errors:
I'm using this script to start kde and so on:
Smjert, proud to be a member of KDE forums since 2008-Oct.
|
![]() Registered Member ![]()
|
I solved, it was a problem of .Xauthority "cookie".
I used a script from here http://wiki.debian.org/XStrikeForce/FAQ#howtoxnest (since i have Debian Lenny), put it in some PATH and changed the embedded desktop starting script like this:
Where XephyrAuth is the name of the script which create the necessary cookie. Now Xephyr starts but it initialize Kde3 not Kde4. This is my startkde-modified (took from the original one but different for the first lines because i added some exports as the guide says):
The command kde4-config --prefix works and return the right path..
Smjert, proud to be a member of KDE forums since 2008-Oct.
|
![]() Registered Member ![]()
|
No one knows why it starts kde3 and not 4?
I think it's a stupid reason but i can't understand why it behave like that.
Smjert, proud to be a member of KDE forums since 2008-Oct.
|
![]() Registered Member ![]()
|
That script is made for KDE3. And, since Debian does not provide co-installable packages for KDE3 & 4, I assume you're compiling from source. If that is the case, you have to set some paths correctly before calling startkde.
This is how I start a KDE 4.2 session in KDE 4.1: Xephyr :1& DISPLAY=:1 ssh -X localhost export KDEDIR=/path/to/KDE/4.2 export KDEHOME=$HOME/.kde42 export KDETMP=/tmp/kde42-$USER mkdir -p $KDETMP export KDEDIRS=$KDEDIR export PATH=$KDEDIR/bin:$PATH export QT_PLUGIN_PATH=$KDEDIR/lib/kde4/plugins:$QT_PLUGIN_PATH startkde
Last edited by YeahReally on Mon Oct 27, 2008 12:12 pm, edited 1 time in total.
|
![]() Registered Member ![]()
|
Yes i compiled from source. I used your script but it says that an x server is already running (anyway my kde3 DISPLAY is 0):
I tried various combination but it always says that there's already a X server running.
Last edited by Smjert on Mon Oct 27, 2008 5:38 pm, edited 1 time in total.
Smjert, proud to be a member of KDE forums since 2008-Oct.
|
![]() Registered Member ![]()
|
That was not a script. It was meant to be written line by line in a terminal. Translated to script my solution is: startkde4-paths
startkde4
Put both files in a directory in your $PATH and run "startkde4".
Last edited by YeahReally on Mon Oct 27, 2008 6:45 pm, edited 1 time in total.
|
![]() Registered Member ![]()
|
Nothing to do, i created the files and put them in /usr/local/bin (just to try, this path is in my $PATH variable):
startkde4:
XephyrAuth is:
and my startkde4-paths:
Still kde3 is loaded... and here some output from the terminal, from when i called the script to when i closed the xephyr window (as you can see it says "unrecognised device identifier", after that i pressed Enter and then i put my password.
Last edited by Smjert on Sat Nov 01, 2008 12:14 am, edited 1 time in total.
Smjert, proud to be a member of KDE forums since 2008-Oct.
|
![]() Registered Member ![]()
|
I used your script (including XephyrAuth) only changing the KDE installation dir and it works as expected.
I suspect you have some files missing or are pointing to the wrong KDE dir. Try changing startkde to /home/smjert/kde/bin/starkde Also verify you have reading and execution privileges to /home/smjert/kde and subdirectories |
![]() Registered Member ![]()
|
I don't have startkde file under /home/smjert/kde/bin (only the one under /usr/bin/ from kde3, which is currentrly installed) ![]() All my directories privileges are 755, owner is smjert. NEWS: I'm rebuilding kde4 with kdesvn-build and now startkde appears in /home/smjert/kde/bin, probably i didn't built someting well the last time (and the last time i used terminal, with cmake and so on).
Last edited by Smjert on Sat Nov 01, 2008 1:44 pm, edited 1 time in total.
Smjert, proud to be a member of KDE forums since 2008-Oct.
|
![]() Registered Member ![]()
|
Ok now i launched the script and xephyr loaded the right kde.
Xephyr window was small so i closed it and modified the call to XephyrAuth, to use 1024x768 resolution and so on, i started again the script but it gave errors about Xauthority, so i closed Kde3, (no grafic environment running) and reopen it with startx and.. first it loads Kde3 with some Kde4 icons on the Desktop, after that it loads Kde4 desktop background and bars, so now i have a mixed grafic environment... what the hell..? ![]() Here's an image... ![]() ![]() NEWS: I partially solved my problems commenting some lines in .bashrc (provided by kde4 building guide ![]()
I can continue without them or i need them? I said partially resolved only because my desktot icons (trash and home) has no icon, tried also to set them one but nothing... I only want to help this project (starting with juniorsjobs obviously), but it's really difficult to start! eheh.
Last edited by Smjert on Sat Nov 01, 2008 4:35 pm, edited 1 time in total.
Smjert, proud to be a member of KDE forums since 2008-Oct.
|
![]() Registered Member ![]()
|
Kool! Now you have the best of both worlds ;P
KDE4 should not be loading at all unless you have setup your .bashrc or other environment script to include KDE4 paths. I suggest to separate or remove those settings. EDIT: You updated your post 4 minutes after my reply :p
For building KDE you need to move those lines and others to a different script (eg. development.sh) and source it (eg.: source development.sh). Then cmakekde as usual.
No idea what is happening there.
Last edited by YeahReally on Sat Nov 01, 2008 8:51 pm, edited 1 time in total.
|
![]() Registered Member ![]()
|
Don't worry, now i have other problems with KDevelop not finding qt includes (even if QTDIR has the right path). Anyway i will deal with that another time ^^.
Smjert, proud to be a member of KDE forums since 2008-Oct.
|
Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell