How to configure codeset option for leafpad?

Please post all general support questions for LXDE here.
Locked
jazzi
Posts: 7
Joined: Tue Jan 29, 2013 12:11 pm

How to configure codeset option for leafpad?

Post by jazzi »

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
jazzi
Rex Bouwense
Posts: 1109
Joined: Sat Aug 27, 2011 5:44 pm
Location: Sierra Vista, Arizona USA
Contact:

Re: How to configure codeset option for leafpad?

Post by Rex Bouwense »

What are you trying to do or rather what do you want to do? It seems like I walked in on the middle of your conversation.
This guide
http://lxlinux.com/#index
was developed and is maintained by a moderator from this forum (seppalta). Check there for information or post back with a clearer description of your problem please.
Rex
jazzi
Posts: 7
Joined: Tue Jan 29, 2013 12:11 pm

Re: How to configure codeset option for leafpad?

Post by jazzi »

Hi Rex,

Thanks for your link but no answer there.

I am trying to configure the leafpad with codeset=zh_CN-utf8 permanently but don't know where & How to write down this configuration.
jazzi
Posts: 7
Joined: Tue Jan 29, 2013 12:11 pm

Re: How to configure codeset option for leafpad?

Post by jazzi »

Ok, I find the solution.

edit leafpad.desktop and add codeset=zh_CN-utf8 to Exec=leafpad %f

the procedure is as follows:

1, copy /usr/share/applications/leafpad.desktop to .local/share/applications/
2, edit the following line within leafpad.desktop
Exec=leafpad --codeset zh_CN-utf8 %f
By the way the FAQ of wiki.lxde.org is great, recommend take a look at there firstly.
Locked