[Flatpak] QCoreApplication::applicationDirPath: Please instantiate the QApplication object first

Flatpak version

1.12.2

What Linux distribution are you using?

Fedora Linux

Linux distribution version

35

What architecture are you using?

x86_64

How to reproduce

  1. flatpak install flathub com.teamspeak.TeamSpeak
  2. flatpak update
  3. flatpak run com.teamspeak.TeamSpeak

Expected Behavior

Open Teamspeak3

Actual Behavior

➜ ~ flatpak run com.teamspeak.TeamSpeak
QCoreApplication::applicationDirPath: Please instantiate the QApplication object first
Qt: Session management error: None of the authentication protocols specified are supported

Did you already try the sensible thing and just looked up the error?
Did you try unsetting the environment variable SESSION_MANAGER?
What did you try?

But just saying, the flatpak is not officially built or supported by TeamSpeak.

1 Like

Removing these folders:

/var/lib/flatpak/app/com.teamspeak.TeamSpeak/
/home/peterge/.var/app

does not work. Even reinstalling does not fix it. I do not find anything else online, just this, which just say removing ~/.ts3client fixed it. But in the flatpak installation its inside /var/lib/flatpak/app/com.teamspeak.TeamSpeak/
I did not unset SESSION_MANAGER yet.
I did nothing more yet, because last time it was fixed after 2 reboots.

It is an issue with QT. What solved it for me was:

sudo apt-get install -y
libqt5gui5
libqt5core5a
libqt5dbus5
libqt5network5
libqt5widgets5
libqt5x11extras5

After a reboot, TeamSpeak wen back to work.