LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-23-2023, 02:12 PM   #1
amikoyan
Member
 
Registered: Mar 2021
Distribution: Slackware64 -current
Posts: 316

Rep: Reputation: 169Reputation: 169
konsole opening in root / when opened using ctrl+alt+t shortcut


Whilst in KDE gui I pressed ctrl+alt+f2 out of curiosity. I then pressed crtl+alt+f7 to return to the gui, the computer froze so I shutdown using the power button.

So the result is I have a different konsole profile (it has very different preferences e.g. font etc) and using the keyboard shortcut ctrl+alt+t opens konsole in the / directory. If I open it through the KDE menu it opens in my home dierctory, but the profile is still incorrect.

echo $HOME returns /home/mik correctly.

How do I get back to where I was before I pressed ctrl+alt+f2?
 
Old 01-23-2023, 10:37 PM   #2
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,975

Rep: Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552
To return to the GUI, you should use Ctrl+Alt+F1, Ctrl+Alt+F7 leaves you are a blank screen, Ctrl+Alt+F1. This behavior change awhile back.

I guess you assigned this Ctrl_Alt-t shortcut to open Konsole, I don't see any assignments for Konsole in settings.
Correction, it seems that this is indeed a default shortcut to open Konsole. I've been using KDE for so long that this never got picked up in my profile. At one time there was no shortcut to Konsole, there is now.

You can check your Konsole profile, pehaps something was changed. I used all of the key combinations here, no issues.

Last edited by chrisretusn; 01-24-2023 at 12:15 AM. Reason: Correction, add more stuff
 
1 members found this post helpful.
Old 01-24-2023, 01:21 AM   #3
amikoyan
Member
 
Registered: Mar 2021
Distribution: Slackware64 -current
Posts: 316

Original Poster
Rep: Reputation: 169Reputation: 169
Thanks chrisretusn.

I have deleted my konsole profile and added another one, which has solved the problem.

However, if I use the default profile the problem persists.

I will mark this as solved as I have a profile which opens in /home/mik when using Ctrl+Alt+t.
 
Old 01-24-2023, 01:25 AM   #4
henca
Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 976

Rep: Reputation: 664Reputation: 664Reputation: 664Reputation: 664Reputation: 664Reputation: 664
I would choose another terminal emulator than console, where it is easier to configure to run as a "login shell". Yes, this is possible to configure also with konsole, but then you might have to edit the line where your shell is being called and add a switch "-l" to that line.

regards Henrik
 
1 members found this post helpful.
Old 01-24-2023, 06:59 AM   #5
Jan K.
Member
 
Registered: Apr 2019
Location: Esbjerg
Distribution: Windows 7...
Posts: 773

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Quote:
Originally Posted by amikoyan View Post
Whilst in KDE gui I pressed ctrl+alt+f2 out of curiosity. I then pressed crtl+alt+f7 to return to the gui, the computer froze so I shutdown using the power button...
Wonder if the KDE Team wouldn't like to know that?
 
Old 01-24-2023, 09:45 PM   #6
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,975

Rep: Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552
Quote:
Originally Posted by amikoyan View Post
However, if I use the default profile the problem persists.
You could try reinstalling Konsole.
 
1 members found this post helpful.
Old 01-25-2023, 12:54 AM   #7
henca
Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 976

Rep: Reputation: 664Reputation: 664Reputation: 664Reputation: 664Reputation: 664Reputation: 664
Quote:
Originally Posted by chrisretusn View Post
You could try reinstalling Konsole.
Most likely the problems come from settings in the users home directory. If willing to sacrifice all settings, it might help to rename or remove ~/.kde or ~/.config

regards Henrik
 
1 members found this post helpful.
Old 01-25-2023, 04:09 AM   #8
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,975

Rep: Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552
Quote:
Originally Posted by henca View Post
Most likely the problems come from settings in the users home directory. If willing to sacrifice all settings, it might help to rename or remove ~/.kde or ~/.config

regards Henrik
That's a bit drastic. The reason I recommended @amikoyan reinstall Konsole is because he stated it happens when he uses the default profile, which I take to be the "build-in (Read-only)" profile.

If I misread what @amikoyan said and it was a profile he has set as default then it could be as simple as editing that profile and checking the the "Initial directory" location. BTW, the configuration file for added profiles is stored in ~/.local/share/konsole/.

Last edited by chrisretusn; 01-25-2023 at 04:10 AM.
 
Old 01-25-2023, 06:48 AM   #9
amikoyan
Member
 
Registered: Mar 2021
Distribution: Slackware64 -current
Posts: 316

Original Poster
Rep: Reputation: 169Reputation: 169
Quote:
Originally Posted by chrisretusn View Post
That's a bit drastic. The reason I recommended @amikoyan reinstall Konsole is because he stated it happens when he uses the default profile, which I take to be the "build-in (Read-only)" profile.
.
To clarify, the issue is with the default read-only profile.

I have created a custom profile which works fine. The default profile continues to open in / directory
 
Old 01-25-2023, 12:35 PM   #10
henca
Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 976

Rep: Reputation: 664Reputation: 664Reputation: 664Reputation: 664Reputation: 664Reputation: 664
Quote:
Originally Posted by amikoyan View Post
To clarify, the issue is with the default read-only profile.
So this seems to be an example of how an unclean shutdown corrupts system files, then comes the question which more files got corrupted?

I usually split up my file system in different partitions. I try to keep the root partition small, but during the last years it has become rather bloated with all those firmware files. A small root partition is less likely to get corrupted during unclean shutdown.

Partitions like /usr and /opt are big, but as not much writing happens on those partitions they are still rather unlikely to get corrupted during an unclean shutdown.

There is a lot of writing going on to /var and /tmp, but even if files on those partitions get corrupted, many of those files are not very important.

regard Henrik
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Ctrl+Alt+F3 not working. window without border: how to restore back ? using the Window Operations Menu () keyboard shortcut ?? andrewysk Linux - Newbie 4 03-02-2021 05:44 PM
[SOLVED] On Ctrl+Alt+F1 shows 1st console , but on Ctrl+Alt+F7 doesnt go back to GUI, startx deskt0plinux Ubuntu 5 05-22-2012 01:56 AM
Recognizing ctrl+c,ctrl+l,ctrl+d in C programs leonardo6023 Programming 1 08-19-2009 09:23 AM
dark screen when pressing Ctrl + Alt + Backspace or Ctrl + Alt F1-F6 in Gnome or KDE trinoo Slackware 5 01-28-2005 08:13 AM
Disabling KDE3.1 Konsole shortcut (CTRL+T) pablob Mandriva 2 09-14-2003 06:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration