-   Linux - General (
-   -   How do I start KDE on the fly? (

stf92 02-08-2013 11:53 PM

How do I start KDE on the fly?
I use Xfce as a desktop environment. I type 'startx' and there Xfce is. If I want to run KDE only once, I can do it by just typing a command line, but I forgot which one. I have these files:

semoi@darkstar:~$ ls -l /etc/X11/xinit/
total 36
-rw-r--r-- 1 root root  321 2003-03-16 18:36 README.Xmodmap
lrwxrwxrwx 1 root root  12 2013-01-22 16:38 xinitrc -> xinitrc.xfce*
-rwxr-xr-x 1 root root  661 2012-08-09 00:58 xinitrc.blackbox*
-rwxr-xr-x 1 root root  660 2012-08-09 01:35 xinitrc.fluxbox*
-rwxr-xr-x 1 root root  704 2012-08-27 13:01 xinitrc.fvwm2*
-rwxr-xr-x 1 root root  627 2012-08-07 15:56 xinitrc.kde*
-rwxr-xr-x 1 root root  725 2009-12-01 04:39 xinitrc.twm*
-rwxr-xr-x 1 root root  958 2012-08-13 13:55 xinitrc.wmaker*
-rwxr-xr-x 1 root root 1199 2013-01-23 19:45 xinitrc.xfce*
-rwxr-xr-x 1 root root 1241 2013-01-23 19:30 xinitrc.xfce~*

I tried '/etc/X11/xinit/xinitrc.kde' and 'startx /etc/X11/xinit/xinitrc.kde' but both of them resulted in errors. Could you give me some hint? The distribution is Slackware 14.0.

EDIT: I also have this:

semoi@darkstar:~$ ls -l /usr/bin/start*
-rwxr-xr-x 1 root root  677 2012-08-09 00:58 /usr/bin/startblackbox*
-rwxr-xr-x 1 root root  1436 2012-08-09 01:35 /usr/bin/startfluxbox*
-rwxr-xr-x 1 root root  672 2012-08-27 13:01 /usr/bin/startfvwm2*
-rwxr-xr-x 1 root root 13489 2012-08-07 15:54 /usr/bin/startkde*
-rwxr-xr-x 1 root root  4805 2013-01-23 21:45 /usr/bin/startx*
-rwxr-xr-x 1 root root  2968 2012-07-19 22:01 /usr/bin/startxfce4*
-rwxr-xr-x 1 root root  4913 2013-01-23 21:23 /usr/bin/startx~*

I'll try running one of these directly.

camorri 02-09-2013 08:53 AM

In a command prompt, run the command 'xwmconfig' ( without the quotes ), and select the desktop of choice.

If you set the system up so you have to log in, there should be a choice to switch desktops at the log in screen. Exactly what it looks like depends whether you are using xdm or kdm on Slackware.

You can find more help here -->

Hope this helps.

stf92 02-09-2013 12:52 PM

Thanks, I knew about that xwmconfig. What I meant is to start KDE, for example, in an immediate way, with previously configuering anything.

camorri 02-09-2013 01:39 PM

Sorry, I don't understand what you are looking for.

The normal way to start any particular desktop is to run xwmconfig and set the desktop you want. Running startx from the startup scripts ( during the boot process ), or as a user if you go to run level 3 on a new install, are the ways I know of.

PTrenholme 02-09-2013 02:25 PM

Try startx startkde

newbiesforever 02-10-2013 12:01 AM

The thread belongs in Linux General anyway (I just reported it to suggest it be moved there; hope the OP doesn't mind), but these kinds of posts/threads make it regrettable that we can't give reputation to posts in non-NIX General. I've had this question for a long time.

And can "startx start[name]" be used for any desktop, or does "startkde" work only for KDE? Can I boot into IceWM (my other desktop) with "startx starticewm"?

PTrenholme 02-10-2013 03:27 PM


Originally Posted by newbiesforever (Post 4888006)
...And can "startx start[name]" be used for any desktop, or does "startkde" work only for KDE? Can I boot into IceWM (my other desktop) with "startx starticewm"?

No, startkde is the name of the script that initrc script is to exec after the X-server is started. Each desktop will have it's own script, but the names have been quite idiosyncratic. Look at the scripts in (on my system) /etc/X11/init/ for details of the procedure, and, of course, the startx script itself. (startx has a man page as well.)

All times are GMT -5. The time now is 10:21 PM.