#758 xterm is always called for desktop files

1.1
closed-fixed
libfm (306)
4
2013-08-26
2013-07-30
Sworddragon
No

I'm using PCManFM 1.1.0 and making a double click on a desktop files can cause xterm to open even if another terminal emulator is defined. For example on my system libfm.conf contains the line "terminal=x-terminal-emulator %s". x-terminal-emulator is linking to this:

sworddragon@ubuntu:~$ ls -al /usr/bin/x-terminal-emulator
lrwxrwxrwx 1 root root 37 Dez 28 2012 /usr/bin/x-terminal-emulator -> /etc/alternatives/x-terminal-emulator
sworddragon@ubuntu:~$ ls -al /etc/alternatives/x-terminal-emulator
lrwxrwxrwx 1 root root 19 Jan 4 2013 /etc/alternatives/x-terminal-emulator -> /usr/bin/lxterminal

The content of the desktop file looks this:

[Desktop Entry]
Exec=/usr/bin/passwd
Terminal=true
Type=Application

Making a double click on this file will open xterm instead of lxterminal.

Discussion

<< < 1 2 3 4 > >> (Page 3 of 4)
  • Sworddragon

    Sworddragon - 2013-08-14

    It says "desktop configuration file". In the attachments is a screenshot which provides some information.

     
  • Sworddragon

    Sworddragon - 2013-08-14

    Screenshot with some informations

     
  • Sworddragon

    Sworddragon - 2013-08-14

    I have seen now that the terminal is showing me an error (I'm starting PCManFM manually for such tests to set the language to C): (pcmanfm:4068): GLib-GIO-WARNING **: couldn't find a terminal, falling back to xterm

     
  • Lonely Stranger

    Lonely Stranger - 2013-08-14

    That pretty much seem as if the desktop configuration files aren't opened by pcmanfm itself but GIO tries to open them. I have no idea how this can happen in case it was already detected right. I'd fix it if I could reproduce it but I cannot, no matter how I rename the file or which permissions I set. And I use pcmanfm-1.1.1 on my desktop.

     
  • Sworddragon

    Sworddragon - 2013-08-14

    The permissions of the file was 0600 if this helps.

     
  • Lonely Stranger

    Lonely Stranger - 2013-08-14

    Oh, I think I know how you can help me find it. You have to:
    1) install packages libfm-dbg and libglib2.0-0-dbg

    2) start pcmanfm under gdb:
    gdb pcmanfm

    3) in gdb enter commands:
    br g_spawn_sync
    br g_spawn_async_with_pipes
    run

    4) when it stops at breakpoint, enter:
    bt full

    and send me all the output. I hope I can find what happens in your case.

     
  • Lonely Stranger

    Lonely Stranger - 2013-08-15

    Ouch, I meant between (3) and (4) launch the problematic file, of course.

     
  • Sworddragon

    Sworddragon - 2013-08-15

    > Ouch, I meant between (3) and (4) launch the problematic file, of course.

    I thought already that I have to do this :)
    In the attachments is the log. I hope there is nothing missing.

     
  • Sworddragon

    Sworddragon - 2013-08-15
     
  • Lonely Stranger

    Lonely Stranger - 2013-08-15
    • status: open --> open-fixed
     
<< < 1 2 3 4 > >> (Page 3 of 4)

Anonymous
Anonymous

Cancel  Add attachments