Double-clicking a file with .mkd extension opens in Leafpad
I'm on Lubuntu 12.10 and ReText version 4 from the Software Center. I have a file with tips and tricks that I formatted with markdown syntax and saved as tips.mkd. If I double-click on this file in PCManFM (file manager), it opens in the default text editor, Leafpad. It's file type also shows as "plain text document".
I can open it with a right-click and choose to open it with ReText which shows as an option. That works. Do I need to edit some files associated with mime types to make sure the system sees a file with the .mkd as something that has to be always opened in ReText.
(Please note that if I give a file a .rst or .rest extension, a double-click on such files opens them in ReText.)
Also, I don't want to use ReText as my default text file editor.
I've asked a question on the topic here as well: http://
I'm not sure whether it's because of any differences between Lubuntu and Ubuntu but will appreciate any comment from you. Thanks.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- ReText Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Augustine Souza
- Solved:
- Last query:
- Last reply:
Revision history for this message
![]() |
#1 |
Looks like a very strange issue — x-retext-
Can you please attach here
- output of "apt-cache policy mime-support shared-mime-info" command;
- your /etc/mime.types ?
Revision history for this message
![]() |
#2 |
Oops, that should have been a "Needs information" request.
Revision history for this message
![]() |
#3 |
Here is the apt-cache info
[04:28 PM] ~ $ sudo apt-cache policy mime-support shared-mime-info
[sudo] password for aesouza:
mime-support:
Installed: 3.52-1ubuntu1
Candidate: 3.52-1ubuntu1
Version table:
*** 3.52-1ubuntu1 0
500 http://
100 /var/lib/
shared-mime-info:
Installed: 1.0-1ubuntu2
Candidate: 1.0-1ubuntu2
Version table:
*** 1.0-1ubuntu2 0
500 http://
100 /var/lib/
[04:28 PM] ~ $
Revision history for this message
![]() |
#4 |
And here is /etc/mime.types
#######
#
# MIME-TYPES and the extensions that represent them
#
# The format of this file is a MIME type on the left and zero or more
# filename extensions on the right. Programs using this file will map
# files ending with those extensions to the associated type.
#
# This file is part of the "mime-support" package. Please send email (not a
# bug report) to <email address hidden> if you would like new types
# and/or extensions to be added.
#
# The reason that all types are managed by the mime-support package instead
# allowing individual packages to install types in much the same way as they
# add entries in to the mailcap file is so these types can be referenced by
# other programs (such as a web server) even if the specific support package
# for that type is not installed.
#
# Users can add their own types if they wish by creating a ".mime.types"
# file in their home directory. Definitions included there will take
# precedence over those listed here.
#
# Note: Compression schemes like "gzip", "bzip", and "compress" are not
# actually "mime-types". They are "encodings" and hence must _not_ have
# entries in this file to map their extensions. The "mime-type" of an
# encoded file refers to the type of data that has been encoded, not the
# type of encoding.
#
#######
application/
application/
application/annodex anx
application/
application/
application/
application/
application/
application/
application/bbolin lin
application/
application/
application/
application/
application/
application/
application/dca-rft
application/dec-dx
application/dicom dcm
application/
application/dsptype tsp
application/dvcs
application/
application/
application/edi-x12
application/edifact
application/eshop
application/
application/
application/
application/hta hta
application/http
application/
application/iges
application/index
application/
application/
application/
application/
application/iotp
application/ipp
application/isup
application/
application/
application/java-vm class
application/
application/json json
application/m3g m3g
application/
application/
application/
application/marc
application/
application/mbox mbox
application/ms-tnef
application/
application/msword doc dot
application/mxf mxf
application/
application/
application/
application/
application/
application/oda oda
application/ogg ogx
application/onenote one onetoc2 onetmp onepkg
application/
application/pdf pdf
application/
application/
application/
application/
application/pkcs10
application/
application/
application/
application/
application/pkixcmp
application/
application/
application/prs.cww
application/
application/qsig
application/rar rar
application/rdf+xml rdf
application/
application/riscos
application/rtf rtf
application/sdp
application/
application/
application/
application/
application/sgml
application/
application/sieve
application/sla stl
application/slate
application/smil smi smil
application/
application/
application/vemmi
application/
application/
application/wita
application/x400-bp
application/
application/xml xml xsl xsd
application/xml-dtd
application/
application/
application/zip zip
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/vnd.bmi
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/vnd.dna
application/
application/vnd.dxr
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/vnd.fdf
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/vnd.mcd
application/
application/
application/vnd.mif
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
#application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/vnd.svd
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/vnd.vcx
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/x-123 wk
application/
application/
application/
application/x-bcpio bcpio
application/
application/x-cab cab
application/x-cbr cbr
application/x-cbz cbz
application/x-cdf cdf cda
application/
application/
application/
application/x-core
application/x-cpio cpio
application/x-csh csh
application/
application/
application/x-dms dms
application/x-doom wad
application/x-dvi dvi
application/
application/x-font pfa pfb gsf pcf pcf.Z
application/
application/
application/
application/
application/
application/
application/
application/x-gtar gtar
application/
application/x-hdf hdf
#application/
#application/
#application/
#application/
#application/
#application/
#application/
application/x-hwp hwp
application/x-ica ica
application/x-info info
application/
application/
application/
application/x-jam jam
application/
application/
application/
application/x-jmol jmz
application/
application/
application/
application/x-koan skp skd skt skm
application/
application/
application/x-kword kwd kwt
application/x-latex latex
application/x-lha lha
application/x-lyx lyx
application/x-lzh lzh
application/x-lzx lzx
application/x-maker frm maker frame fm fb book fbdoc
application/x-md5 md5
application/x-mif mif
application/
application/
application/
application/
application/x-msi msi
application/
application/
application/x-nwc nwc
application/
application/
application/
application/
application/
application/x-qgis qgs shp shx
application/
application/x-rdp rdp
application/
application/
application/x-ruby rb
application/x-rx
application/
application/
application/x-sh sh
application/x-sha1 sha1
application/x-shar shar
application/
application/
application/
application/x-sql sql
application/
application/
application/
application/x-tar tar
application/x-tcl tcl
application/
application/
application/
application/x-trash ~ % bak old sik
application/x-troff t tr roff
application/
application/
application/
application/x-ustar ustar
application/
application/
application/x-wingz wz
application/
application/x-xcf xcf
application/x-xfig fig
application/
audio/32kadpcm
audio/3gpp
audio/amr amr
audio/amr-wb awb
audio/amr amr
audio/amr-wb awb
audio/annodex axa
audio/basic au snd
audio/csound csd orc sco
audio/flac flac
audio/g.722.1
audio/l16
audio/midi mid midi kar
audio/mp4a-latm
audio/mpa-robust
audio/mpeg mpga mpega mp2 mp3 m4a
audio/mpegurl m3u
audio/ogg oga ogg spx
audio/parityfec
audio/prs.sid sid
audio/telephone
audio/tone
audio/vnd.cisco.nse
audio/vnd.cns.anp1
audio/vnd.cns.inf1
audio/vnd.
audio/vnd.
audio/vnd.
audio/vnd.
audio/vnd.
audio/vnd.
audio/vnd.
audio/vnd.octel.sbc
audio/vnd.qcelp
audio/vnd.
audio/vnd.vmx.cvsd
audio/x-aiff aif aiff aifc
audio/x-gsm gsm
audio/x-mpegurl m3u
audio/x-ms-wma wma
audio/x-ms-wax wax
audio/x-
audio/x-
audio/x-realaudio ra
audio/x-scpls pls
audio/x-sd2 sd2
audio/x-wav wav
chemical/x-alchemy alc
chemical/x-cache cac cache
chemical/
chemical/
chemical/x-cdx cdx
chemical/x-cerius cer
chemical/x-chem3d c3d
chemical/x-chemdraw chm
chemical/x-cif cif
chemical/x-cmdf cmdf
chemical/x-cml cml
chemical/x-compass cpa
chemical/
chemical/x-csml csml csm
chemical/x-ctx ctx
chemical/x-cxf cxf cef
#chemical/
chemical/
chemical/
chemical/
chemical/
chemical/
chemical/
chemical/
chemical/
chemical/x-genbank gen
chemical/x-hin hin
chemical/x-isostar istr ist
chemical/x-jcamp-dx jdx dx
chemical/x-kinemage kin
chemical/
chemical/
chemical/
chemical/
chemical/
chemical/
chemical/x-mdl-tgf tgf
#chemical/x-mif mif
chemical/x-mmcif mcif
chemical/x-mol2 mol2
chemical/
chemical/
chemical/
chemical/
chemical/
chemical/
chemical/
chemical/
chemical/
chemical/x-pdb pdb ent
chemical/x-rosdal ros
chemical/
chemical/
chemical/x-vmd vmd
chemical/x-xtel xtel
chemical/x-xyz xyz
image/cgm
image/g3fax
image/gif gif
image/ief ief
image/jpeg jpeg jpg jpe
image/naplps
image/pcx pcx
image/png png
image/prs.btif
image/prs.pti
image/svg+xml svg svgz
image/tiff tiff tif
image/vnd.cns.inf2
image/vnd.djvu djvu djv
image/vnd.dwg
image/vnd.dxf
image/vnd.
image/vnd.fpx
image/vnd.fst
image/vnd.
image/vnd.
image/vnd.
image/vnd.mix
image/vnd.net-fpx
image/vnd.svf
image/vnd.wap.wbmp wbmp
image/vnd.xiff
image/x-canon-cr2 cr2
image/x-canon-crw crw
image/x-cmu-raster ras
image/x-coreldraw cdr
image/x-
image/x-
image/x-
image/x-epson-erf erf
image/x-icon
image/x-jg art
image/x-jng jng
image/x-ms-bmp bmp
image/x-nikon-nef nef
image/x-olympus-orf orf
image/x-photoshop psd
image/x-
image/x-
image/x-
image/x-
image/x-rgb rgb
image/x-xbitmap xbm
image/x-xpixmap xpm
image/x-xwindowdump xwd
inode/chardevice
inode/blockdevice
inode/directory
inode/directory
inode/fifo
inode/socket
message/
message/
message/
message/http
message/s-http
message/news
message/partial
message/rfc822 eml
model/iges igs iges
model/mesh msh mesh silo
model/vnd.dwf
model/vnd.
model/vnd.gdl
model/vnd.gs-gdl
model/vnd.gtw
model/vnd.mts
model/vnd.vtu
model/vrml wrl vrml
model/x3d+vrml x3dv
model/x3d+xml x3d
model/x3d+binary x3db
multipart/
multipart/
multipart/
multipart/digest
multipart/encrypted
multipart/form-data
multipart/
multipart/mixed
multipart/parallel
multipart/related
multipart/report
multipart/signed
multipart/
text/cache-manifest appcache
text/calendar ics icz
text/css css
text/csv csv
text/directory
text/english
text/enriched
text/h323 323
text/html html htm shtml
text/iuls uls
text/mathml mml
text/parityfec
text/plain asc txt text pot brf srt
text/prs.lines.tag
text/rfc822-headers
text/richtext rtx
text/rtf
text/scriptlet sct wsc
text/t140
text/texmacs tm
text/tab-
text/uri-list
text/vnd.abc
text/vnd.curl
text/vnd.
text/vnd.
text/vnd.fly
text/vnd.
text/vnd.in3d.3dml
text/vnd.in3d.spot
text/vnd.
text/vnd.IPTC.NITF
text/vnd.latex-z
text/vnd.
text/vnd.
text/vnd.
text/vnd.wap.si
text/vnd.wap.sl
text/vnd.wap.wml wml
text/vnd.
text/x-bibtex bib
text/x-boo boo
text/x-c++hdr h++ hpp hxx hh
text/x-c++src c++ cpp cxx cc
text/x-chdr h
text/x-component htc
text/x-crontab
text/x-csh csh
text/x-csrc c
text/x-dsrc d
text/x-diff diff patch
text/x-haskell hs
text/x-java java
text/x-lilypond ly
text/x-
text/x-makefile
text/x-moc moc
text/x-pascal p pas
text/x-pcs-gcd gcd
text/x-perl pl pm
text/x-python py
text/x-scala scala
text/x-
text/x-setext etx
text/x-sfv sfv
text/x-sh sh
text/x-tcl tcl tk
text/x-tex tex ltx sty cls
text/x-vcalendar vcs
text/x-vcard vcf
video/3gpp 3gp
video/annodex axv
video/dl dl
video/dv dif dv
video/fli fli
video/gl gl
video/mpeg mpeg mpg mpe
video/MP2T ts
video/mp4 mp4
video/quicktime qt mov
video/mp4v-es
video/ogg ogv
video/parityfec
video/pointer
video/webm webm
video/vnd.fvt
video/vnd.
video/vnd.
video/vnd.mpegurl mxu
video/vnd.mts
video/vnd.
video/vnd.vivo
video/x-flv flv
video/x-la-asf lsf lsx
video/x-mng mng
video/x-ms-asf asf asx
video/x-ms-wm wm
video/x-ms-wmv wmv
video/x-ms-wmx wmx
video/x-ms-wvx wvx
video/x-msvideo avi
video/x-sgi-movie movie
video/x-matroska mpv mkv
x-conference/
x-epoc/x-sisx-app sisx
x-world/x-vrml vrm vrml wrl
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
application/
Revision history for this message
![]() |
#5 |
Nothing suspicious in the output... Looks like I'll need to download a live image of Lubuntu and investigate the issue...
Revision history for this message
![]() |
#6 |
I appreciate your efforts. It's possible that this is LXDE-specific or that I messed up something but at least two other people do not have a problem. One of them (using GNOME or Unity) provided an image of what he sees when right-clicking on a markdown file:
http://
The Open With tab in the image has "Select an application to open ... and other files of type "Markdown document"". I don't see that in Lubuntu.
Revision history for this message
![]() |
#7 |
I got help which suggested I use "mimeopen" to associate the file. Works perfectly now. Thanks for a really neat program! I'm marking this solved.