Score:5

How to make firefox from snap use `~/.XCompose`

nz flag

I use compose key with my own customized compose settings in ~/.XCompose, which works well everywhere with the exception of firefox from the snap.

Is there anyway to "teach" firefox from snap to use ~/.XCompose or a place to copy that file so that firefox from snap uses it?

Score:4
tv flag

For Firefox, you should copy (or better, symlink) the ~/.XCompose file to ~/snap/firefox/common/:

ln -s ~/.XCompose ~/snap/firefox/common

In the general case, you should run

snap run --shell {snapname}
env|grep -w HOME

and create the symlink to the path indicated in the output of that command.

See also: Launchpad: Snaps don't respect .XCompose.

FedKad avatar
cn flag
It seems that you have to restart your system for the changes to take effect for any snap application. I guess this is something related to snapd daemon.
nteodosio avatar
tv flag
To me it suffices to restart Firefox, but who knows what could be different in our environments... I'll keep that in mind, thanks.
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.