Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I would like to somehow make Gedit on my sister's laptop to open text files in Windows1250 (CP1250-Winlatin2) encoding by default.

She has a plenty of ebooks in txt format and opening them in LibreOffice is not much comfortable.

I need to use Gedit or some similar GTK app, which is fully accessible by Orca Screenreader.

PS: running Vinux (based on Ubuntu Lucid Lynx) - more info here:

Running Ubuntu Linux, the Ubuntu 10.04 (lucid) release.
    GNOME: 2.30.0 (Ubuntu 2010-03-31)
    Kernel version: 2.6.32-22-generic (#36-Ubuntu SMP Thu Jun 3 22:02:19 UTC 2010)
    GCC: 4.4.3 (i486-Linux-gnu)
    Xorg: unknown (09 June 2010  10:55:28AM) (09 June 2010  10:55:28AM)
share|improve this question

1 Answer 1

up vote 5 down vote accepted

create executable script /usr/local/bin/geditwin

#!/bin/sh
gedit --encoding=WINDOWS-1250 "$@"

and set it as default text editor in gnome. (right click on any text file, open with, remember...)

share|improve this answer
    
thank you very much. Works perfectly. :-) –  Juhele Aug 15 '11 at 17:46
    
Great tip, thanks! –  Tomasz Zieliński Jan 9 '12 at 21:52
    
+1 That's awesome. –  BryceAtNetwork23 Mar 6 '12 at 14:25

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.