Score:1

How to initialize Firefox on wayland always by default?

sv flag

I want to initialize firefox on wayland always, also from the GUI, for now I can do it from the terminal using the following command:

MOZ_ENABLE_WAYLAND=1 firefox

That works, and also I know that I can put that as an alias, but what I would like to know is how to do the same by default i.e. When clicking at the icon of firefox at the GUI.

Pablo Ruiz avatar
sv flag
@Terrance, thanks for your answer, it makes plenty of sense, unfortunately I could´t make it work, maybe í'm skipping something.
Score:5
in flag

Add the following to ~/.profile:

# Firefox wayland:
if [ "$XDG_SESSION_TYPE" == "wayland" ]; then
    export MOZ_ENABLE_WAYLAND=1
fi

and reboot.

Pablo Ruiz avatar
sv flag
This worked after rebooting, maybe there is a way avoiding reboot, but is still ok, thanks!
in flag
Yes, this requires option requires reboot. Thanks, I've updated the answer!
kr flag
If using Zsh, add to ~/.zprofile instead, and use `[[ .. ]]` (double brackets) instead of single ones (avoid `[ .. ]`)
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.