28 votes

"ModuleNotFoundError: No module named 'apt_pkg'" appears in various commands

Original answer from https://askubuntu.com/q/1242009/747557, credit to @Hmdbbgh. The solution that worked for me was to reinstall python3-apt: sudo apt remove python3-apt sudo apt autoremove sudo apt ...
Gal's user avatar
  • 571
22 votes
Accepted

Disabling KWin compositor from command-line

To disable compositing: qdbus org.kde.KWin /Compositor suspend To enable compositing qdbus org.kde.KWin /Compositor resume
Artem S. Tashkinov's user avatar
18 votes
Accepted

How can I prevent Meta from opening up KDE Plasma's launcher?

As implied here, edit ~/.config/kwinrc, adding the following lines to the bottom. [ModifierOnlyShortcuts] Meta= Then restart kwin with kwin_x11 --replace & disown.
Sparhawk's user avatar
  • 20k
15 votes
Accepted

KDE5 After resume from suspend I have corrupted labels under icons

I know your pain, this has been annoying me for months now. The only way to fix the desktop I've found is brute force, I made a shortcut to do this and run it every time I resume from standby: ...
Ozone's user avatar
  • 266
15 votes
Accepted

KDE global menu disappeared in Plasma 5.12

According to announcements you need to add the corresponding Plasma Widget or the menu button from "Window Decorations" settings. Global Menus have returned. KDE's pioneering feature to ...
Artem Yu's user avatar
  • 306
11 votes

KDE task switcher spam: "the window switcher installation is broken, resources are missing."

The window switcher installation is broken, resources are missing It seems you downloaded some theme or custom task switcher that is not compatible with your current version. I had same problem and ...
DependencyHell's user avatar
9 votes

How do I change the icon for an application on the KDE panel?

kmenuedit will allow you do it via GUI see this other question/answer https://askubuntu.com/questions/647121/how-do-i-set-custom-application-icons-in-kde
Mathieu J.'s user avatar
9 votes

KDE global menu disappeared in Plasma 5.12

I fixed this annoying as heck issue from displaying the menu in for the application on the desktop by disabling this:
Los's user avatar
  • 101
9 votes
Accepted

KDE Konsole: how to save and restore current session?

Create ~/.konsole/watcher.sh and make it executable (chmod 755 watcher.sh) then add it to the startup applications. We can start konsole in a restored mode with konsole --tabs-from-file ~/.konsole/...
intika's user avatar
  • 14.4k
8 votes
Accepted

Where does KDE 5 store user-specific keyboard layout choices?

After some time of searching and playing with grep, I was able to locate the configuration file: ~/.config/kxkbrc.
martin-is-my-name's user avatar
8 votes
Accepted

Change Krunner size and position in KDE Plasma 5

Position: In plasma 5.20 and above the position can be switched between top and center as said here In all Plasma 5 versions position can be set to middle by editing ~/.config/krunnerrc and adding [...
cipricus's user avatar
  • 1,549
7 votes

Mount an hard drive at start-up

To have a device mounted on startup, you need to edit /etc/fstab as root. The format for /etc/fstab is as follows: # <file system> <mount point> <type> <options> &...
Peschke's user avatar
  • 4,148
7 votes

Disabling KWin compositor from command-line

Shift + Alt + F12 is the droid you are looking for.
Meshuggah 333's user avatar
6 votes

Who suspends my programs when I switch to another X session?

Who is responsible for this? Not Linux. Not Ubuntu. Not X.Org. The programs are not suspended. The programs themselves are the culprit. Since times immemorial, programs have been able to know ...
Gilles 'SO- stop being evil''s user avatar
6 votes
Accepted

How to prevent sound mute when switching user?

Solution Add all users that should be able play back to the pulse-access group # adduser problemofficer pulse-access Create /etc/systemd/system/pulseaudio.service with the following content: [...
problemofficer - n.f. Monica's user avatar
6 votes

KDE global menu disappeared in Plasma 5.12

I tried going to the panel's context menu > Panel Options > Add Panel > Application Menu Bar, but only an empty panel appears at the top of the screen. If this happens to you: 1. Go to System ...
Golemwire's user avatar
6 votes
Accepted

KDE Kontact applications fail to start. The Akonadi personal information management service is not operational

Solution The error logs show that the akonadi verion of the mysql server that these K* applications require is trying to access ~/.local/share/akonadi/db_data/ except db_data doesn't exist, so it ...
DeveloperACE's user avatar
6 votes
Accepted

KDE Plasma: window drop shadows/transparencies broken

OK, I figured it out: seems the 'Compositor' crashed. The Compositor can be found in the System Settings under Display and Monitor > Compositor. There was a dialogue box there that said the ...
kasimir's user avatar
  • 445
5 votes

Is KDE 5 on Debian Stretch broken?

See bugreport: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=829614. There is some kind of conflicts between KF5 5.22 and 5.23. I had the same issue, and installing libkf5plasma5 from unstable ...
Benoit's user avatar
  • 51
4 votes

How to disable event sounds in Plasma 5?

On KDE Plasma 5.22, Open System Settings, navigate on the menus to this place: and click the "Configure Events" button. This window will popup: here you can disable/change the system ...
Eduardo de Souza Cruz's user avatar
4 votes

Cannot create folders and files anywhere but my /home directory

Simple Linux permissions. The user semko owns its $HOME directory. Most other directories on a Linux system are owned by root or some other system related account and are writeable only by root or ...
Deathgrip's user avatar
  • 2,576
4 votes
Accepted

KDE/Plasma and large monitor: how to snap windows to 3x3 grid?

UltawideWindows kwin script should do what you are looking for. It maps shortcuts ctrl+meta+numpad and meta+numpad and ctrl+numpad and alt+numpad to map different window positions and sizes. https://...
Sasha's user avatar
  • 66
4 votes
Accepted

Unable to start plasmashell in Arch Linux

Try reinstalling plasma-desktop plasma-workspace plasma-framework
Artem S. Tashkinov's user avatar
4 votes
Accepted

Cannot update system due to kde apps on arch

I figured it out: The root for the problem was that qt5 will be updated to qt6 soon. So the developers decided to suffix all packages with 5to make them better identifiable In this cause also all the ...
FloHe's user avatar
  • 860
3 votes

KDE5 After resume from suspend I have corrupted labels under icons

I have had the same problem with Kubuntu 18.04. Having gone read several posts about this problem, I've combined the answers into a solution that works automatically. There is a small Bash script that ...
Petaflop's user avatar
3 votes
Accepted

Is KDE 5 on Debian Stretch broken?

You must have always the very last packages of QT5, KF5 for every Plasma 5 version, or the Plasma Desktop has many bugs, freezes or is completely broken. In Debian are mostly old or different versions,...
Nick's user avatar
  • 46

Only top scored, non community-wiki answers of a minimum length are eligible