Page 1 of 1

How to configure codeset option for leafpad?

Posted: Wed Aug 07, 2019 3:27 am
by owenclements
Hi,

CODE: SELECT ALL

#leafpad --codeset=zh_CN-utf8 filename


Above command can show the file correctly

And how to write the codeset option to ~/.config/leafpad/leafpadrc or other configuration file

That I do not have to input the codeset option everytime.

Thanks

Re: How to configure codeset option for leafpad?

Posted: Wed Aug 07, 2019 9:35 am
by drooly
looks to me like leafpadrc is not meant to be edited by humans.
In other words, no, you can't.

One workaround would be to do copy /usr/share/applications/leafpad.desktop to ~/.local/share/applications and change the Exec line accordingly.