#532 PCManFM does not pass the file name to TeXMaker

pcmanfm (130)

I noticed recently that I cannot open my .tex files with TeXMaker by double-clicking the corresponding file in PCManFM. It simply starts an empty TeXMaker window instead of the document. If I open the .tex document with TeXMaker from terminal, it works fine. Also I tried double-clicking on the .tex document in Thunar, and it worked correctly too. That is why it looks like something is wrong with PCManFM.
Still, I can open other documents from PCManFM correctly, so I'm not sure whether I understand the nature of the problem well.

Anyway, I hope it is possible to fix this issue.


  • Lonely Stranger

    Lonely Stranger - 2012-05-19

    That may be some conflict with appropriate .desktop file for TeXMaker in your distribution. That .desktop file probably lies in /usr/share/applications directory. Could you find it and list here line which starts with 'Exec=' ?

  • v_2e

    v_2e - 2012-05-19

    These are the contents of the '/usr/share/applications/texmaker.desktop' file:

    [Desktop Entry]
    Exec=texmaker %U
    GenericName=LaTeX Editor
    GenericName[fr]=Editeur LaTeX
    Comment=LaTeX development environment
    Comment[fr]=Environnement de développement LaTeX

  • PCMan

    PCMan - 2012-05-21
    • status: open --> pending
  • PCMan

    PCMan - 2012-05-21

    I installed texmaker to test this. I created tex files with various filenames, but all of them can be opened correctly with double click. I'm not able to reproduce this bug.
    Do you have the terminal output of pcmanfm when you open the file?
    Mine is:
    DEBUG: launch command: <texmaker '/home/pcman/tex test.tex' >
    Try to test against the latest source code in out git repo if possible. I don't think the problem exist in the latest code. Thanks

  • InspiredIndividual

    I seem to have exactly the same problem. I am using the version of PCManFM as included in Lubuntu 12.04. The same line
    "Exec=texmaker %U"
    is included in my texmaker.desktop file. How can I run pcmanfm in a verbose mode? When I open pcmanfm in a terminal, I don't get any terminal output. Alternatively, I am more than willing to compile the latest code in order to check if that solves the problem, if someone could tell me how to install two versions of pcmanfm at the same time (I'm a newbie)?

    I tried double-clicking, and various custom command lines to execute (%f, %F, %U, %u), but none of them work. They do work when entered directly in a terminal.

  • v_2e

    v_2e - 2012-08-06

    Currently I have


    and do not experience this problem any more, although I haven't upgraded PCManFM since October 2011.
    the only more or less related thing I updated recently was my DE (Xfce-4.10.0).

    to install several versions of the same program (in order to test whether it works) you can do the following:

    cd ~
    tar -xvf pcmanfm-archive.tar.gz
    cd pacmanfm-archive
    make prefix=/home/username/local
    make install

    If you do all this from your regular user account (NOT as ROOT!!!), everything should be find. The program will be installed into /home/username/local/bin/...

    Note: instead of "pcmanfm-archive.tar.gz" you should type a name of a real archive downloaded from SourceForge. And of course, instead of "username" you should type your real user name (login name).

    P.S. To be honest, I do not remember which install system PCManFM uses actually, so I gave an example for a typical GNU Make configuration.


  • v_2e

    v_2e - 2012-08-06
    • status: pending --> open
  • Lonely Stranger

    Lonely Stranger - 2012-08-09

    The 1.0~rc1 version is available in ubuntu 12.10 packages so you can try to install them.
    So since you don't experience the problem anymore I'm closing the ticket.
    Thank you, Vladimir, and feel free to reopen the bug if you go into this issue again with 1.0~rc1 or newer version.

  • Lonely Stranger

    Lonely Stranger - 2012-08-09
    • labels: --> pcmanfm
    • status: open --> closed-works-for-me


Cancel  Add attachments