← Back to team overview

desktop-packages team mailing list archive

[Bug 1517956] [NEW] xdg-settings assumes desktop files have exactly one Exec line

 

Public bug reported:

In searching the desktop file for suitability, it scans for all lines
that begin "Exec", and takes the result and packs it into a variable.

If there is exactly one Exec line, this takes out a command name to test
for existence, but when more than one matches, the program name is
captured as "firstexecprog\nsecondexecprog\nthirdexecprog", and "which"
doesn't know how to look up a program like that and the subsequent tests
fail.

** Affects: xdg-utils
     Importance: Unknown
         Status: Unknown

** Affects: xdg-utils (Ubuntu)
     Importance: Undecided
         Status: New

** Bug watch added: freedesktop.org Bugzilla #92170
   https://bugs.freedesktop.org/show_bug.cgi?id=92170

** Also affects: xdg-utils via
   https://bugs.freedesktop.org/show_bug.cgi?id=92170
   Importance: Unknown
       Status: Unknown

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to xdg-utils in Ubuntu.
https://bugs.launchpad.net/bugs/1517956

Title:
  xdg-settings assumes desktop files have exactly one Exec line

Status in Xdg-utils:
  Unknown
Status in xdg-utils package in Ubuntu:
  New

Bug description:
  In searching the desktop file for suitability, it scans for all lines
  that begin "Exec", and takes the result and packs it into a variable.

  If there is exactly one Exec line, this takes out a command name to
  test for existence, but when more than one matches, the program name
  is captured as "firstexecprog\nsecondexecprog\nthirdexecprog", and
  "which" doesn't know how to look up a program like that and the
  subsequent tests fail.

To manage notifications about this bug go to:
https://bugs.launchpad.net/xdg-utils/+bug/1517956/+subscriptions


Follow ups