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
I was able to launch them from the terminal with
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 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:
The ZSH path assumes you installed with Homebrew.
Then, make the script executable:
Finally, set this script as your default shell:
When prompted for the shell path, give it
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:
The ZSH path assumes you installed with Homebrew.
Then, make the script executable:
Finally, set this script as your default shell:
When prompted for the shell path, give it
/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.