Page 1 of 1
How to configure codeset option for leafpad?
Posted: Wed Jan 30, 2013 2:16 am
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
Re: How to configure codeset option for leafpad?
Posted: Wed Jan 30, 2013 5:48 pm
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.
Re: How to configure codeset option for leafpad?
Posted: Thu Jan 31, 2013 2:30 am
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.
Re: How to configure codeset option for leafpad?
Posted: Sat Feb 02, 2013 2:15 am
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.