© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
BazziteB
Bazzite•2y ago•
42 replies
RadDevon

Several Flatpak apps broken after changing shells and rebooting

Just booted up my computer today and was surprised that the icons in my panel were broken for a couple of Flatpak apps. When I tried clicking them to launch the apps, it seems that is also broken. The apps I've discovered so far that are missing are Firefox, Zen Browser, Vencord, and Gear Lever. The Discover store seems to think these apps are all installed. I tried removing and reinstalling them, but they still can't be launched using the button in the Discover store.

I was able to launch them from the terminal with
flatpak run
flatpak run
. Not sure what's happening here. Yesterday, I did change my default shell to ZSH but everything seems to be working properly there since I sourced
/etc/profile
/etc/profile
in my config. Any idea what this weird bug might be?
Solution
Found a solution for this and commented with it on that GH issue. Replicating it here in case anyone finds this thread.

Maybe there's a cleaner way to do this, but I was able to work around this issue by writing a shell wrapper script to start ZSH for interactive shells and Bash for anything else. Here's the script:

#!/bin/bash

if [ -t 0 ]; then
    exec /home/linuxbrew/.linuxbrew/bin/zsh
else
    exec /bin/bash
fi
#!/bin/bash

if [ -t 0 ]; then
    exec /home/linuxbrew/.linuxbrew/bin/zsh
else
    exec /bin/bash
fi


The ZSH path assumes you installed with Homebrew.

Then, make the script executable:
chmod +x /path/to/shell-script.sh
chmod +x /path/to/shell-script.sh


Finally, set this script as your default shell:
sudo lchsh $USER
sudo lchsh $USER


When prompted for the shell path, give it
/path/to/shell-script.sh
/path/to/shell-script.sh
(replacing, of course, with the actual path; I just dropped it into my home directory). Restart once you've set the new shell, and you should see your Flatpaks work and you can have ZSH as your interactive shell.
Jump to solution
BazziteJoin
The operating system for the next generation of gamers.
29,482Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Flatpak notifications are broken for many apps
BazziteBBazzite / 🛟bazzite-help
11mo ago
File Picker crashes within flatpak apps
BazziteBBazzite / 🛟bazzite-help
13mo ago
Vivaldi ceases to function after syncing settings and rebooting.
BazziteBBazzite / 🛟bazzite-help
9mo ago
Stuck at 29.99hz after rebooting
BazziteBBazzite / 🛟bazzite-help
3mo ago