You are not logged in.
Pages: 1
Hi,
I had a whole pile of keyboard shortcuts to add, and it's so slow to do it in the GUI, I like to be able to find the actual file where they are stored and edit that directly. I found the file ok "xfce4-keyboard-shortcuts.xml" and my edits worked fine, but I'm curious as to why the file is in .xml format (but even then no browser can open it) -- why not a plain vanilla text file?
Offline
Hello,
That's because keyboard shortcuts are stored using xfconf which uses an XML backend. You should not modify those files by hand, better use "xfconf-query" to script the process of adding a shortcut if you want to add them quickly.
Cheers,
Jérôme
Offline
Hello,
That's because keyboard shortcuts are stored using xfconf which uses an XML backend. You should not modify those files by hand, better use "xfconf-query" to script the process of adding a shortcut if you want to add them quickly.
Cheers,
Jérôme
Thanks Jerome, I'll look at this 'xfconf-query'.
But the question still remains: Why does xfconf use XML? One of the nicest things about the linux world is that most config files are plain text and I'm wondering why xfce4 has made an exception here. Of course I know that other apps and other desktops have some non-text config files to, but since plain text is so 'obviously' better, there must be some very good reason why xfconf doesn't use it. I'm just trying to understand some of the deep reasons why things are done a certain way.
Offline
I can't say exactly why, but XML is IMO far easier to parse / manipulate / more structured than a text file. I guess one good reason is that Brian wrote it like that
Offline
Maybe it gives a sort of head start in parsing things -- XML engines already 'know' how to retrieve information. Still:
<alt>F1 opera
<alt>F2 thunderbird
....
seems like it would be easy to parse and easy to write.
Offline
Pages: 1
[ Generated in 0.012 seconds, 12 queries executed - Memory usage: 527.76 KiB (Peak: 528.67 KiB) ]