LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   All Things KDE5/Plasma for Slackware Users. (https://www.linuxquestions.org/questions/slackware-14/all-things-kde5-plasma-for-slackware-users-4175670109/)

Jeebizz 08-19-2021 06:16 PM

2 Attachment(s)
I rebuilt an iso of Current RC1, based on today's updates in the changelog. Opening Konsole, it still opens in a small scale (oh well), but also I still can't get Konsole to start as a login shell even after saving the profile:



konsolerc:
Code:

[Desktop Entry]
DefaultProfile=

[MainWindow]
RestorePositionForNextInstance=false
State=AAAA/wAAAAD9AAAAAAAABY0AAALQAAAABAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAIAAAAWAG0AYQBpAG4AVABvAG8AbABCAGEAcgEAAAAA/////wAAAAAAAAAAAAAAHABzAGUAcwBzAGkAbwBuAFQAbwBvAGwAYgBhAHIBAAAFIP////8AAAAAAAAAAA==
StatusBar=Disabled
ToolBarsMovable=Disabled
VGA-1 Height 1920x1080=796
VGA-1 Width 1920x1080=1421
VGA-1 XPosition 1920x1080=196
VGA-1 YPosition 1920x1080=199

Konsolerc doesn't seem to show /bin/bash -l so I added it manually at the bottom and restarted Konsole, and still no prompt as a login shell.


I realize this is a KDE bug, and it doesn't look like it has been fixed or reported (I will report it then) , but in the mean time what is the suggested work around? :scratch:

USUARIONUEVO 08-19-2021 07:52 PM

Every plasma update is a "surprise box"

I see konsole build 2 , revert some size patches , now again in the first run of konsole , a rediculous size returns , in to installed system thats not a big problem ,cause after manually resize konsole remember size , but when go in to a live system , every boot same manually action ..mm , i dont like.


No one say nothing arround my other question , why ark , now open destinationdirectiry , when end jobs ??

compress or uncompress ... from servicemenu actions , open other dolphin instance ...not nice.

And of course , i check in ark preferences disabled the option "open destination folder after extraction" , ..but when compress does the same action , default option is NO , but he plays alone.

EDIT: Here we go , to try fix konsole ... https://www.linuxquestions.org/quest...ml#post6276872

zeebra 08-20-2021 03:09 AM

Quote:

Originally Posted by Jeebizz (Post 6276848)
Konsolerc doesn't seem to show /bin/bash -l so I added it manually at the bottom and restarted Konsole, and still no prompt as a login shell.

Yeah, I have the same from 17. Aug rc1.

chrisretusn 08-20-2021 05:39 AM

Konsole profile information goes in to ~/.local/share/konsole/, so you will not find "/bin/bash -l" in konsolerc.

gegechris99 08-20-2021 07:26 AM

Quote:

Originally Posted by USUARIONUEVO (Post 6276868)
No one say nothing arround my other question , why ark , now open destinationdirectiry , when end jobs ??

compress or uncompress ... from servicemenu actions , open other dolphin instance ...not nice.

And of course , i check in ark preferences disabled the option "open destination folder after extraction" , ..but when compress does the same action , default option is NO , but he plays alone.

I don't have your issue with ark in Slackware64 current up-to-date at time of writing (Thu Aug 19 18:54:03 UTC 2021)
After uncompressing a zip file with service menu in dolphin, I only get a notification that the job is completed.
The notification box has a button to open the destination directory if I want to do so but the destination directory is not automatically opened.

marav 08-20-2021 07:58 AM

Quote:

Originally Posted by USUARIONUEVO (Post 6276868)
Every plasma update is a "surprise box"

I see konsole build 2 , revert some size patches , now again in the first run of konsole , a rediculous size returns , in to installed system thats not a big problem ,cause after manually resize konsole remember size , but when go in to a live system , every boot same manually action ..mm , i dont like.


No one say nothing arround my other question , why ark , now open destinationdirectiry , when end jobs ??

compress or uncompress ... from servicemenu actions , open other dolphin instance ...not nice.

And of course , i check in ark preferences disabled the option "open destination folder after extraction" , ..but when compress does the same action , default option is NO , but he plays alone.

EDIT: Here we go , to try fix konsole ... https://www.linuxquestions.org/quest...ml#post6276872

Maybe you could try to remove $HOME/.config/arkrc

richarson 08-21-2021 02:16 PM

Quote:

Originally Posted by richarson (Post 6275767)
I just filed this bug report:

https://bugs.kde.org/show_bug.cgi?id=441056

Yakuake loses focus and doesn't show up in the task switcher anymore.

Very annoying for my use case :(

I searched https://invent.kde.org/utilities/yakuake/ and found this:

https://invent.kde.org/utilities/yak...ge_requests/42

Which took me to this other bug report:

https://bugs.kde.org/show_bug.cgi?id=439027

I can confirm that forcing yakuake's window type to "normal window" with a window rule also fixes my issue with the task switcher.

Cheers!

cwizardone 08-21-2021 02:34 PM

This week's new features, bug fixes and improvements,
https://pointieststick.com/2021/08/2...ool-new-stuff/

Jeebizz 08-21-2021 03:11 PM

So after posting my issue with Konsole and login shell in kde forums, they are alluding that it could be distro related , maybe - but I think that is a very slim chance at best. I don't know if Pat has played with Plasma lately , but it seems that nobody at the kde forums can replicate my issue, but I am at a loss why konsole refuses to open with a login shell prompt instead of showing bash-5.15...

https://forum.kde.org/viewtopic.php?...72349&p=448315

ZhaoLin1457 08-21-2021 03:25 PM

Quote:

Originally Posted by Jeebizz (Post 6277396)
So after posting my issue with Konsole and login shell in kde forums, they are alluding that it could be distro related , maybe - but I think that is a very slim chance at best. I don't know if Pat has played with Plasma lately , but it seems that nobody at the kde forums can replicate my issue, but I am at a loss why konsole refuses to open with a login shell prompt instead of showing bash-5.15...

https://forum.kde.org/viewtopic.php?...72349&p=448315

So, you want user@hostname instead of bash5 ?

But this way it shows, having just /bin/bash as shell on the Konsole profile.

mlangdn 08-21-2021 03:30 PM

@Jeebizz

Mine shows "michael@darkstar:~$" for Konsole.
I opened Xterm, urxt, and others and got the same prompt. Once upon a time it did show only bash-.... whatever. I could not tell you when that happened, but it has been awhile. Maybe there was a new file added to current that you missed? I seem to forget to run install-new ocassionally.

zeebra 08-21-2021 03:32 PM

Quote:

Originally Posted by Jeebizz (Post 6277396)
So after posting my issue with Konsole and login shell in kde forums, they are alluding that it could be distro related , maybe - but I think that is a very slim chance at best. I don't know if Pat has played with Plasma lately , but it seems that nobody at the kde forums can replicate my issue, but I am at a loss why konsole refuses to open with a login shell prompt instead of showing bash-5.15...

https://forum.kde.org/viewtopic.php?...72349&p=448315

It's not distro related. I've had this issue in Mageia several times in the past, and I never found out what triggered it. I would guess bash profile for pty.

mlangdn 08-21-2021 03:56 PM

That variable is set in Slackware in /etc/profile. This is whats in mine from Line 45 to 57 for PS1. (PS stands for prompt statement one)

Code:

# Set a default shell prompt:
#PS1='`hostname`:`pwd`# '
if [ "$SHELL" = "/bin/pdksh" ]; then
 PS1='! $ '
elif [ "$SHELL" = "/bin/ksh" ]; then
 PS1='! ${PWD/#$HOME/~}$ '
elif [ "$SHELL" = "/bin/zsh" ]; then
 PS1='%n@%m:%~%# '
elif [ "$SHELL" = "/bin/ash" ]; then
 PS1='$ '
else
 PS1='\u@\h:\w\$ '
fi

The last line tells what's in the prompt statement.

\u@ is the username
\h: is the hostname
\w is the working directory
\$ is a normal user

Check that and I bet you can solve your problem. That also sets that prompt in all shells in Slackware

zeebra 08-21-2021 04:36 PM

Quote:

Originally Posted by Jeebizz (Post 6277396)
So after posting my issue with Konsole and login shell in kde forums, they are alluding that it could be distro related , maybe - but I think that is a very slim chance at best. I don't know if Pat has played with Plasma lately , but it seems that nobody at the kde forums can replicate my issue, but I am at a loss why konsole refuses to open with a login shell prompt instead of showing bash-5.15...

https://forum.kde.org/viewtopic.php?...72349&p=448315

So, I was looking into this a bit, since I had the same issue. And now I have the usual konsole user@host setup. Sadly, I can't exactly tell what changed.

At first I tried to change the profile, but that didn't help. So I added a profile and changed the command to /bin/bash -l. It had no effect. I logged out of X as well and back in. Played around with the profiles, and no change. Then I decided to reboot. When I got back it worked. But only conditionally.

The "default profile" is invoked as /bin/bash and not /bin/bash -l. Any other profile that says /bin/bash in the settings does not invoke -l, so you need to specifically set it. Switching between profiles with different settings will make this clear. This solves the "problem", in a way. But normally you don't need to set -l in the konsole settings, so I'm pretty sure it has to do with how the "default" profile is invoked.

It could be down to the global PS1 environmental variable, or the user one. You could try setting the PS1 variable both manually and permanently to test or solve this.
Code:

env
should give some clues as well. My default konsole profile has no PS1 env at all.

Edit.
Looking into this a bit further it turns out I have no .bash_profile and .bashrc :rolleyes:

Quote:

When you login to the console, the login program is starting a login shell, which sources .bash_profile, not .bashrc. A GUI terminal emulator typically starts a non-login interactive shell, which sources .bashrc, not .bash_profile, since your GUI was presumably started from a login shell. It's a fairly common practice to include source ~/.bashrc from your .bash_profile, so that .bashrc is sourced for all interactive shells, whether or not they are login shells

Jeebizz 08-21-2021 04:56 PM

Quote:

Originally Posted by ZhaoLin1457 (Post 6277402)
So, you want user@hostname instead of bash5 ?

But this way it shows, having just /bin/bash as shell on the Konsole profile.

Yes I know, but I stated in previous posts, adding -l in command /bin/bash in the profile in Konsole and hitting apply, and restarting Konsole does not work and it is a KDE issue, but there is no definitive reason as to why.


All times are GMT -5. The time now is 03:56 AM.