Some applications do not start for a very long time

Sadly there is no output. When I tried “firefox”, “konsole” or “elisa” it did not give me any output. It also did not start anything. I waited ~5 minutes on all 3 before I stopped the it with CTRL+C.

I have just restarted and it seems to work now, I have tried a few things though and I am not 100% which of these fixed the problem.
There are a few solutions that I have tried:

I first tried removing some applications from my startup (I suspected something on there was causing some problems).

I then tried this command (from this thread: Konsole not working in Dolphin):

sudo pacman -Syu --asdeps kinit

I then tried to reinstalling some packages to see if that works with this command (not sure from which thread I have got that):

sudo pacman -Syu attica kactivities karchive kauth kbookmarks kclock kcodecs kcompletion kconfig kconfigwid
gets kcoreaddons kcrash kdbusaddons kdeclarative kglobalaccel kguiaddons ki18n kiconthemes kio kirigami2 kirig
ami-addons kitemviews kjobwidgets knotifications kpackage kservice ktextwidgets kwallet kwayland kwidgetsaddons kwindowsystem kxmlgui plasma-framework solid sonnet

And at last I tried to disable samba, suspecting that it may mess with my startup. I mainly suspect that something messed with my startup somehow:

sudo systemctl disable smb
sudo systemctl disable samba
sudo systemctl disable samba.service

I am not entirely sure which of these attempts currently seemed to fix the issue and if it is just more of a temporary bandate than a sufficent fix to the problem.
Applications now start when trying to open them through ulauncher and latte dock.

I have also noticed that the keyring or some kind of authentication with a KDE service now does not show up on login. Usually I log into KDE and I have to put in my password again on some popup for some KDE service, this popup now does not show up anymore.

Edit:
The issue also could have been related to Kvantum. I did update Kvantum manager before doing the restart that fixed the issue.