[Portland-bugs] [Bug 92514] New: xdg-open does not spawn terminal for Terminal=true

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Oct 17 16:24:53 PDT 2015


https://bugs.freedesktop.org/show_bug.cgi?id=92514

            Bug ID: 92514
           Summary: xdg-open does not spawn terminal for Terminal=true
           Product: Portland
           Version: 1.1.0
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: xdg-utils
          Assignee: portland-bugs at lists.freedesktop.org
          Reporter: t_glaessle at gmx.de

Created attachment 118945
  --> https://bugs.freedesktop.org/attachment.cgi?id=118945&action=edit
Ad hoc patch to launch terminal

xdg-open does not spawn terminals for desktop files with `Terminal=true`.

For example consider the following configuration:

`~/.local/share/applications/ranger.desktop`:

    [Desktop Entry]
    Name=ranger
    Type=Application
    Terminal=true
    Exec=ranger %F

`~/.local/share/applications/mimeapps.list`:

    [Default Applications]
    inode/directory=ranger.desktop
    inode/mount-point=ranger.desktop

Then I expect ranger to be opened in a terminal upon running:

    xdg-open /


What currently happens is:

(a) if running the command from a non-terminal context, xdg-open tries to
execute ranger without terminal. This errors and xdg-open falls back to execute
mimeopen which ignores mimeapps.list and only looks at defaults.list and
therefore confusingly may use another default.

(b) if running the command within a terminal, ranger is opened in the current
terminal. While this is fine, I think it would be fine as well to spawn a new
terminal.

This applies to xdg-utils 1.1.1.

The attached patch spawns a new terminal asynchronously indiscriminately of
case (a) versus case (b). It uses the TERMINAL environment variable, similar to
what `mimeopen` does.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/portland-bugs/attachments/20151017/6541eb6e/attachment.html>


More information about the Portland-bugs mailing list