Unity 8 Desktop Preview session can not launch apps wrapped in a shell script

Bug #1300911 reported by Stephen M. Webb
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Dropping Letters
Fix Released
Medium
Unassigned
Ubuntu Calculator App
Fix Released
Undecided
Unassigned
Ubuntu Calendar App
Fix Released
Undecided
Unassigned
Ubuntu Clock App
Fix Released
Medium
Olli Ries
Ubuntu File Manager App
Fix Released
Medium
Unassigned
Ubuntu Music App
Fix Released
Medium
Olli Ries
Ubuntu Notes app
Invalid
Undecided
Unassigned
Ubuntu Shorts App
Fix Released
Undecided
Unassigned
Ubuntu Terminal App
Fix Released
Medium
Unassigned
Ubuntu Weather App
Fix Released
Medium
Unassigned
unity8-desktop-session (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

A number of apps are actually the qmlscene binary launched from a shell script. These apps fail to launch from the Unity8 desktop session preview, although if the wrapped qmlscene command line is added to the app's .desktop file explicitly, the app will launch and run correctly.

Launching through the shell script wrapper results in a crash in qmlscene (should be attached).

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: unity8-desktop-session-mir 1.0.10+14.04.20140328-0ubuntu1
ProcVersionSignature: Ubuntu 3.13.0-19.40-generic 3.13.6
Uname: Linux 3.13.0-19-generic x86_64
ApportVersion: 2.14-0ubuntu1
Architecture: amd64
Date: Tue Apr 1 13:30:52 2014
InstallationDate: Installed on 2013-05-09 (327 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
SourcePackage: unity8-desktop-session
UpgradeStatus: Upgraded to trusty on 2013-10-31 (152 days ago)

Related branches

Revision history for this message
Stephen M. Webb (bregma) wrote :
summary: - unity8 desktop preview session can not launch apps wrapped in a shell
+ Unity 8 Desktop Preview session can not launch apps wrapped in a shell
script
Stephen M. Webb (bregma)
Changed in unity8-desktop-session (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Michał Sawicz (saviq) wrote :

Have you tried with "exec" in the bash scripts? I think this might be because the connection comes from a different PID than upstart reported to unity as the launching app.

Revision history for this message
Michał Sawicz (saviq) wrote :

Do you have an example of an app like that? Does it work fine on phone?

Revision history for this message
Gerry Boland (gerboland) wrote :

Right, unity8/unity-mir gets the PID of the script that upstart launches, and checks that against the PID of the process that connects to Mir. If they don't match, the connection is rejected.

Revision history for this message
Stephen M. Webb (bregma) wrote :

Yes, modifying the shell script to exec qmlscene fixes the problem.

The test problem I use is the ubuntu-filemanager-app from touch-coreapps.

Revision history for this message
David Planella (dpm) wrote :

File manager has already got a branch that uses a proper binary instead of a launcher shell script

Olli Ries (ories)
affects: unity8-desktop-session → ubuntu-calculator-app
Revision history for this message
Olli Ries (ories) wrote :

added all affected projects.

I confirmed that changing the line

qmlscene /usr/share/$APP/$APPNAME.qml

to

exec qmlscene /usr/share/$APP/$APPNAME.qml

starts the applications accordingly, as per comment #5

Revision history for this message
Olli Ries (ories) wrote :

stock-ticker-mobile-app will probably be fixed with https://bugs.launchpad.net/ubuntu-terminal-app/+bug/1288885

no longer affects: stock-ticker-mobile-app
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

Fix committed into lp:ubuntu-filemanager-app at revision 160, scheduled for release in ubuntu-filemanager-app, milestone alpha-1

Changed in ubuntu-filemanager-app:
status: New → Fix Committed
Changed in ubuntu-clock-app:
assignee: nobody → Olli Ries (ories)
importance: Undecided → Medium
status: New → In Progress
Changed in music-app:
importance: Undecided → Medium
status: New → In Progress
assignee: nobody → Olli Ries (ories)
Changed in ubuntu-calculator-app:
status: New → In Progress
Changed in ubuntu-terminal-app:
status: New → In Progress
Changed in ubuntu-weather-app:
status: New → In Progress
Changed in ubuntu-calendar-app:
status: New → In Progress
Changed in ubuntu-rssreader-app:
status: New → In Progress
Changed in ubuntu-clock-app:
milestone: none → 2.0
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

Fix committed into lp:ubuntu-clock-app at revision 397, scheduled for release in ubuntu-clock-app, milestone 2.0

Changed in ubuntu-clock-app:
status: In Progress → Fix Committed
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

Fix committed into lp:ubuntu-terminal-app at revision 49, scheduled for release in ubuntu-terminal-app, milestone alpha-1

Changed in ubuntu-terminal-app:
status: In Progress → Fix Committed
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

Fix committed into lp:ubuntu-rssreader-app at revision 213, scheduled for release in ubuntu-rssreader-app, milestone alpha-1

Changed in ubuntu-rssreader-app:
status: In Progress → Fix Committed
Changed in ubuntu-calculator-app:
status: In Progress → Fix Committed
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

Fix committed into lp:ubuntu-calculator-app at revision 240, scheduled for release in ubuntu-calculator-app, milestone 1.6

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

Fix committed into lp:ubuntu-calendar-app at revision 248, scheduled for release in ubuntu-calendar-app, milestone alpha-1

Changed in ubuntu-calendar-app:
status: In Progress → Fix Committed
Changed in ubuntu-weather-app:
status: In Progress → Fix Committed
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

Fix committed into lp:ubuntu-weather-app at revision 236, scheduled for release in ubuntu-weather-app, milestone alpha-1

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

Fix committed into lp:music-app at revision 427, scheduled for release in music-app, milestone 1.0

Changed in music-app:
status: In Progress → Fix Committed
Changed in ubuntu-clock-app:
milestone: 2.0 → none
status: Fix Committed → Fix Released
Revision history for this message
David Planella (dpm) wrote :

Marking as invalid for Reminders, which is installed as a binary and not as a wrapper script

Changed in reminders-app:
status: New → Invalid
Changed in music-app:
status: Fix Committed → Fix Released
Changed in ubuntu-rssreader-app:
status: Fix Committed → Fix Released
Changed in ubuntu-calculator-app:
status: Fix Committed → Fix Released
Changed in ubuntu-calendar-app:
status: Fix Committed → Fix Released
David Planella (dpm)
Changed in ubuntu-filemanager-app:
status: Fix Committed → Fix Released
importance: Undecided → Medium
Changed in ubuntu-terminal-app:
importance: Undecided → Medium
status: Fix Committed → Fix Released
Changed in ubuntu-weather-app:
importance: Undecided → Medium
status: Fix Committed → Fix Released
Changed in dropping-letters:
importance: Undecided → Medium
status: New → Fix Released
Stephen M. Webb (bregma)
Changed in unity8-desktop-session (Ubuntu):
status: Triaged → Fix Released
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.