When launching a snap from Ubuntu Software, it may not pick our intended command (if are many)

Simos Xenitellis simos.lists at googlemail.com
Fri Feb 3 13:09:51 UTC 2017


Hi All,

When launching a snap from Ubuntu Software ('Launch' button), there is
the issue which command (from snapcraft.yaml) it should use to start
the program.
The intuitive way would be to use the first command specified in snapcraft.yaml.
However, it appears that somehow the list of commands is sorted, so
the intended command may not get selected.

It could be a bug in Ubuntu Software as well but does not look like.
If you try to run 'snap info libreoffice' several times (assumed you
already installed the snap),
you notice that the order of the commands is different every time.

commands:
  - libreoffice.writer
  - libreoffice.base
  - libreoffice.calc
  - libreoffice.draw
  - libreoffice.impress
  - libreoffice
  - libreoffice.math

then

commands:
  - libreoffice.math
  - libreoffice.writer
  - libreoffice.base
  - libreoffice.calc
  - libreoffice.draw
  - libreoffice.impress
  - libreoffice

Bug report: https://bugs.launchpad.net/snappy/+bug/1661590

It happens also with the LibreOffice snap, see the update at
https://blog.simos.info/how-to-install-libreoffice-5-3-on-ubuntu-16-04-from-snap/

Simos




More information about the Snapcraft mailing list