How to configure codeset option for leafpad?

Please post all general support questions for LXDE here.
Locked
owenclements
Posts: 1
Joined: Wed Aug 07, 2019 3:26 am

How to configure codeset option for leafpad?

Post 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
drooly
Posts: 791
Joined: Mon Apr 08, 2013 6:45 am

Re: How to configure codeset option for leafpad?

Post 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.
Locked