Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Very strange behaviour with kde
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
ranran
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jul 2018
Posts: 75

PostPosted: Wed Aug 01, 2018 3:50 pm    Post subject: Very strange behaviour with kde Reply with quote

Hello,

Last week I've installed kde.
I see now very strange behaviour with kde.
It started when I try to load kde automatically , (instead of writing "startx" every time in terminal).

I don't use display manager, just terminal on display.
on boot it gets to prompt of user and password.
When I want to manually start kde I just enter in terminal:
"startx", and this seems to work fine.

Now I added in user's .bashrc a call
...
startx
...
1. But surprisingly even though it starts KDE display when entering password, when I try to start konsole, I get blank screen and logo of KDE.
2. Even more surprising, I once just entered in terminal (before kde starts) "vi /home/user/.bashrc" and pressed enter, and then I see kde logo in the center and blank screen !!!!! What's is this ? Is it a virus ???

Thanks for any idea, I start to lose my mind on this behaviour,
ranran
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Wed Aug 01, 2018 9:03 pm    Post subject: Reply with quote

Quote:
Now I added in user's .bashrc a call "startx"

That's definitely the wrong place!

Look at the man page of bash:
bash man page wrote:
When an interactive shell that is not a login shell is started, bash reads and executes commands from ~/.bashrc

So when you start konsole, a new instance of bash will be started (for the terminal window) - and it will read/execute .bashrc, which will start another X session. This will give you exactly the result you described...
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Wed Aug 01, 2018 10:33 pm    Post subject: Reply with quote

Look here or here for a solution.
Back to top
View user's profile Send private message
ranran
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jul 2018
Posts: 75

PostPosted: Fri Aug 03, 2018 5:56 am    Post subject: Reply with quote

mike155 wrote:
Look here or here for a solution.

Right!
Thanks very much, I was sure there is some mystery here, now I see the logic.
ranran
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum