How to add color scheme xml file to gnome text-editor outside root

Hi,

On Fedora 40, how would I go about adding a few xml color scheme files to gnome text-editor? The gnome website suggests putting the xml file in the editor’s root location

/usr/share/gnome-text-editor/styles

However I want to put that xml file somewhere in $HOME, but I can’t find the gnome-text-editor dir anywhere in ~/.config or ~/.local or anywhere within ~/

Any suggestions on how to get this done, would be really helpful, thanks!

You can try creating ~/.local/share/gnome-text-editor/styles directory and put your XML files there. I couldn’t find any documentation about this but usually equivalent of /usr/share for user’s home directory is ~/.local/share and most apps check there.

1 Like

Thanks for the tip. But it didn’t work. Gnome text editor does not pick up the xml file. I did find a org.gnome.TextEditor inside ~/.local/share/ so I created a styles directory within it and added the xml file. That didn’t work either. So whether I put the xml file inside ~/.local/share/gnome-text-editor/styles or ~/.local/share/org.gnome.TextEditor/styles it doesn’t get accessed.

lxhome@fedora:~/.local/share/gtksourceview-5/styles$ ls
kanagawa.xml

still not getting picked up

I found this note on the issue tracker:

2 Likes

Yes! That drag n drop feature worked! I would never guessed it could be so easy. Thanks so much for finding that note!

1 Like