You are not logged in.

#1 2017-06-11 11:46:30

mcctrixasylin
Member
Registered: 2017-06-09
Posts: 13

(solved) KDE Desktop Environment do not start automatically

Hello all of you lovely people of Arch Linux World.i had installed KDE  5.10.1 on my Arch Linux pc now it does not start automatically  my .xinitrc which is in root directory contain this :
#!/bin/sh
source $HOME/.xprofile
exec startkde
i always have to login first than type:systemctl start sddm than it starts.......
Please help me i can't figure out how to start it automatically i had searched google but doesn't find anything.
Thanks In Advance.........

Last edited by mcctrixasylin (2017-06-12 08:31:27)

Offline

#2 2017-06-11 11:54:25

loqs
Member
Registered: 2014-03-06
Posts: 19,114

Re: (solved) KDE Desktop Environment do not start automatically

mcctrixasylin wrote:

i had installed KDE  5.10.1 on my Arch Linux pc now it does not start automatically  my .xinitrc which is in root directory contain this :
#!/bin/sh
source $HOME/.xprofile
exec startkde

See Xinit#xinitrc to fix the .xinitrc.  See  Xinit#Autostart_X_at_login if you wish to autostart X at login.  It is not advisable to start a graphical environment as root.

mcctrixasylin wrote:

i always have to login first than type:systemctl start sddm than it starts.......

That will start SDDM not KDE.  It will also not enable the service so that it will start on boot.  SDDM is a display manager and an alternative to using startx / xinit that use .xinintrc.

mcctrixasylin wrote:

Please help me i can't figure out how to start it automatically i had searched google but doesn't find anything.

What search terms did you use?
Edit:
Fixed grammar missing capitalization.

Last edited by loqs (2017-06-11 11:55:07)

Offline

#3 2017-06-11 11:57:22

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,546
Website

Re: (solved) KDE Desktop Environment do not start automatically

xinitrc is irrelevant if you are using a display manager.

xinitrc should not be in your root users directory: if you are going to use xinit/startx that file needs to be in your users directory.

I don't know how you have searched and not found our wiki:
https://wiki.archlinux.org/index.php/KD … ing_Plasma

If you want to use sddm there is a page for that too:
https://wiki.archlinux.org/index.php/SDDM

If you want a service started at every boot, there is a page for that too:
https://wiki.archlinux.org/index.php/Sy … sing_units


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2017-06-11 12:50:11

mcctrixasylin
Member
Registered: 2017-06-09
Posts: 13

Re: (solved) KDE Desktop Environment do not start automatically

I had copied xinitrc from root touser directory and when i got error for startx i also created xprofile in user directory now startx is working perfectly but still kde do not start automatically

Offline

#5 2017-06-11 13:09:21

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,546
Website

Re: (solved) KDE Desktop Environment do not start automatically

Then read some of the links you were provided with.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2017-06-11 14:49:57

vegangaro
Member
Registered: 2017-06-07
Posts: 8

Re: (solved) KDE Desktop Environment do not start automatically

# systemctl enable sddm && systemctl start sddm

https://wiki.archlinux.org/index.php/Di … ay_manager


C++ and KDE = PRAISE THE SUN!

Offline

#7 2017-06-12 08:30:42

mcctrixasylin
Member
Registered: 2017-06-09
Posts: 13

Re: (solved) KDE Desktop Environment do not start automatically

Solved.my .xinitrc contain exec startkde and than i start systemctl enable sddm than everything works fine...........

Offline

#8 2017-06-12 08:56:40

loqs
Member
Registered: 2014-03-06
Posts: 19,114

Re: (solved) KDE Desktop Environment do not start automatically

mcctrixasylin wrote:

Solved.my .xinitrc contain exec startkde and than i start systemctl enable sddm than everything works fine...........

Trilby wrote:

xinitrc is irrelevant if you are using a display manager.

@vegangaro please see vampires specifically #2: Cease Enabling Behavior ( adding commands that were already provided on linked wiki pages can lead to learned helplessness )

Offline

Board footer

Powered by FluxBB