this post was submitted on 15 Jan 2025
12 points (100.0% liked)

KDE

5730 readers
347 users here now

KDE is an international technology team creating user-friendly free and open source software for desktop and portable computing. KDE’s software runs on GNU/Linux, BSD and other operating systems, including Windows.

Plasma 6 Bugs

If you encounter a bug, proceed to https://bugs.kde.org/, check whether it has been reported.

If it hasn't, report it yourself.

PLEASE THINK CAREFULLY BEFORE POSTING HERE.

Developers do not look for reports on social media, so they will not see it and all it does is clutter up the feed.

founded 2 years ago
MODERATORS
 

Hi,

When pressing Ctrl-Alt-T when Konsole is already open, I would like for the existing window to be unminimized and for a new tab to be created, rather than a new window.

How to do this ?

Thanks

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 7 points 2 weeks ago (2 children)

Yes very possible

  1. Open the konsole settings, enable "use a single process" (or something)
  2. Copy the konsole desktop entry from /usr/share/applications to ~/.local/share/applications and change Exec=konsole to Exec=konsole --new-tab

I did this, works without issues

[–] [email protected] 3 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

Also, in Shortcuts, remove Ctrl-Alt-T from "Launch" and put it on "Open in New Tab".

And it annoys me that you can't close tabs in Konsole with middle click. Just sayin'.

[–] [email protected] 1 points 2 weeks ago (1 children)

in Shortcuts, remove Ctrl-Alt-T from “Launch” and put it on “Open in New Tab”

That works, thank you !

you can’t close tabs in Konsole with middle click

Actually, that works. Konsole v24.12.1 on KDE neon 6.2

Although I always close all terminal sessions on all devices with Ctrl+D because it's universal.

[–] [email protected] 1 points 2 weeks ago (1 children)

hmm, I'm on 24.12.0 on Fedora so I guess I'll see if it works when it upgrades next.

[–] [email protected] 3 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

Hmm, I would find it weird that this feature would have been added just now on that last patch version.

~~However, I noticed something : on another computer, running flatpaked Konsole on Pop OS, middle click doesn't work indeed. So, maybe this feature only works when using KDE ?~~

UPDATE : turns out, the feature just wasn't enabled. Go to Configure Konsole -> Tab Bar / Splitters -> Behavior -> Close tab on middle-click.

Also, here's something I like on Konsole that other terminal emulators don't have : making the tab bar always visible, because I don't like when the terminal resizes due to going between 1 tab & 2+ tabs.

[–] [email protected] 1 points 2 weeks ago (1 children)

That's awesome, it's fixed. I have no idea why that isn't the default, because it does nothing otherwise (though if you dbl-middle click, it brings up tab configuration).

TYVM

[–] [email protected] 1 points 1 week ago

I wondered as well.

You're welcome !

[–] [email protected] 1 points 2 weeks ago (2 children)

Open the konsole settings, enable “use a single process” (or something)

Yeah I did that already thinking it would solve this but I didn't know there was an additional step to perform 😅

Copy the konsole desktop entry from /usr/share/applications to ~/.local/share/applications

So, I just did something stupid. 😭

  • I ran cp /usr/share/applications ~/.local/share/applications not noticing that you didn't specify the name of the file ;
  • I then noticed that it copied many more files than intended, so I ran rm -r ~/.local/share/applications ;
  • As I was gonna run mkdir -p ~/.local/share/applications && cp /usr/share/applications/org.kde.konsole.desktop ~/.local/share/applications, I noticed a bunch of my apps disappeared, meaning this directory already existed and already had files that weren't duplicates from /usr/share/applications.

How do I recover from that ?

Thank you

[–] [email protected] 3 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

Lol ma boy

Good idea but obviously you should have looked what entries there were

diff --color=auto -qy  ~/.local/share/applications /usr/share/applications

Would have been the command.

Good luck getting your entries back! (And no, rm has no wastebin...)

Normally only user customized ones go in there, maybe if you use hacky tools like appimage-manager or so they too.

[–] [email protected] 2 points 1 week ago (1 children)

Normally only user customized ones go in there, maybe if you use hacky tools like appimage-manager or so they too

Well, turns out those were user customized ones indeed, but that I never wrote myself : for adding environment variables to an application, I'd right-click it in the start menu then Edit Application, which opens a GUI editor that actually writes into ~/.local/share/applications.

So, luckily, I didn't loose any app : they eventually reappeared on their own and I only had to redo the customization.

Also, that made me realize that I can also use that same GUI to do the edit you suggested.

[–] [email protected] 1 points 1 week ago
[–] [email protected] 2 points 2 weeks ago (1 children)

I don't know how to recover exactly, but if none of the files were handwritten, they probably came from something like flatpak - applications installed specifically for your user. You should probably look into whatever you might be using to install software for help restoring/recreating the .desktop files, or worst case reinstall the software you lost them for.

On a side note, doesn't cp error when trying to copy folders without the recursive flag?

[–] [email protected] 2 points 1 week ago* (last edited 1 week ago)

if none of the files were handwritten, they probably came from something

Yep, I thought about Flatpak, but no, those are actually located in /var/lib/flatpak/exports/share/applications.

Turns out the files in ~/.local/share/applications were generated when I'd use the Edit Application GUI for adding environment variables to apps.

So, I didn't loose any app, I just had to wait for them to reappear and then reapply the environment variables.

doesn’t cp error when trying to copy folders without the recursive flag?

Yeah it actually did, but I didn't think anything of it and just added the flag without thinking 😅

(Because I already forget it most of the time when I do intend to copy directories so I took the habit to mechanically press Home then Ctrl-Right then space dash r...)