View previous topic :: View next topic |
Author |
Message |
ranran Tux's lil' helper
Joined: 11 Jul 2018 Posts: 75
|
Posted: Wed Aug 01, 2018 3:50 pm Post subject: Very strange behaviour with kde |
|
|
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 |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Wed Aug 01, 2018 9:03 pm Post subject: |
|
|
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 |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Wed Aug 01, 2018 10:33 pm Post subject: |
|
|
Look here or here for a solution. |
|
Back to top |
|
|
ranran Tux's lil' helper
Joined: 11 Jul 2018 Posts: 75
|
Posted: Fri Aug 03, 2018 5:56 am Post subject: |
|
|
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 |
|
|
|
|
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
|
|