Need to determine if snap apps require terminal or not

Bug #1595023 reported by Robert Ancell
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gnome-software (Ubuntu)
Fix Released
High
Unassigned
Xenial
Fix Released
High
Unassigned
Yakkety
Fix Released
High
Unassigned

Bug Description

snapd returns a list of apps a snap contains, i.e:

"apps": [{"name": "moon-buggy"}]

However, we can't tell if this is a terminal app (like moon buggy) or a graphical app (like Ubuntu calculator).

Revision history for this message
Robert Ancell (robert-ancell) wrote :

A potential solution:

"apps": [{"name": "moon-buggy", "graphical": false}]

Not sure if this can be easily determined from the snapd metadata.

Changed in gnome-software (Ubuntu):
importance: Undecided → High
status: New → Triaged
Revision history for this message
Robert Ancell (robert-ancell) wrote :

Reading the .desktop spec [1] the key they use is "Terminal". So perhaps this is worth matching:

"apps": [{"name": "moon-buggy", "terminal": true}]

[1] https://specifications.freedesktop.org/desktop-entry-spec/latest/

Revision history for this message
Robert Ancell (robert-ancell) wrote :

I was also considering if it made sense to report the graphical backend(s) that the app would use, i.e.

"apps": [{"name": "moon-buggy", "backend"s: ["mir", "x11"]}]

But I think that most apps actually don't care / know - they use a toolkit and have no idea what backend it uses.

tags: added: gnome-software
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in snapd (Ubuntu):
status: New → Confirmed
Changed in gnome-software (Ubuntu Xenial):
status: New → Triaged
importance: Undecided → High
Changed in gnome-software (Ubuntu Yakkety):
status: Triaged → Fix Committed
Changed in gnome-software (Ubuntu Xenial):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-software - 3.20.1+git20161003.0.7ac7d1b-0ubuntu1

---------------
gnome-software (3.20.1+git20161003.0.7ac7d1b-0ubuntu1) yakkety; urgency=medium

  * New upstream snapshot from the wip/ubuntu branch at
    git://git.gnome.org/gnome-software.
    - Show screenshots for snaps (requires snapd 2.15.2) (LP: #1603610)
    - Set snap summary from snapd response (LP: #1629456)
    - Don't show terminal for graphical apps (LP: #1595023)

 -- Robert Ancell <email address hidden> Mon, 03 Oct 2016 13:27:22 +1300

Changed in gnome-software (Ubuntu Yakkety):
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Hello Robert, or anyone else affected,

Accepted gnome-software into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/gnome-software/3.20.1+git20161013.0.d77d6cf-0ubuntu2~xenial1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

tags: added: verification-needed
Revision history for this message
Robert Ancell (robert-ancell) wrote :

Confirmed in Xenial 'xbill' snap runs an X window without a terminal and 'moon-buggy' opens a terminal.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Robert Ancell (robert-ancell) wrote :

Removing snapd tasks as the solution didn't require a change there.

no longer affects: snapd (Ubuntu)
no longer affects: snapd (Ubuntu Xenial)
no longer affects: snapd (Ubuntu Yakkety)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-software - 3.20.1+git20161013.0.d77d6cf-0ubuntu2~xenial1

---------------
gnome-software (3.20.1+git20161013.0.d77d6cf-0ubuntu2~xenial1) xenial; urgency=medium

  * New upstream snapshot from the wip/ubuntu branch at
    git://git.gnome.org/gnome-software.
    - Use snapd-glib to perform snapd login. This fixes non-root access being
      removed in snapd. (LP: #1616943)
    - Show screenshots for snaps (requires snapd 2.15.2) (LP: #1603610)
    - Set snap summary from snapd response (LP: #1629456)
    - Don't show terminal for graphical apps (LP: #1595023)
  * debian/control:
    - Build-depend on libsnapd-glib-dev
  * debian/rules:
    - Build with --enable-snap

 -- Robert Ancell <email address hidden> Wed, 23 Nov 2016 21:31:03 +1300

Changed in gnome-software (Ubuntu Xenial):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for gnome-software has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.