Application (Spotify) can prevent shutdown.

Bug #943607 reported by Tormod Hellen on 2012-02-29
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
gnome-session (Ubuntu)
Undecided
Unassigned

Bug Description

When clicking on "shut down" while having an open window with the Spotify app Ubuntu will only close Spotify's open window. I have to click once more to actually shut down the rest of the computer. This is only a minor nuisance to me, but a malevolent program could probably use this property to prevent an soft shutdown by repeatedly spawning new windows, then it would be a problem on remotely managed systems.

Most of all, it just worries me that a user application can hijack something like the system's ability to shut down. Makes you wonder what else it could do if the developer wanted it to.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: unity 4.28.0-0ubuntu2
ProcVersionSignature: Ubuntu 3.0.0-16.28-generic 3.0.17
Uname: Linux 3.0.0-16-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
CompizPlugins: [core,bailer,detection,composite,opengl,compiztoolbox,decor,gnomecompat,mousepoll,imgpng,unitymtgrabhandles,vpswitch,snap,move,grid,regex,place,animation,resize,wall,fade,session,expo,workarounds,ezoom,scale,unityshell]
Date: Wed Feb 29 22:23:37 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: unity
UpgradeStatus: No upgrade log present (probably fresh install)

Tormod Hellen (tormod-hellen) wrote :
visibility: private → public
affects: ubuntu → unity (Ubuntu)
Omer Akram (om26er) on 2012-03-01
affects: unity (Ubuntu) → indicator-session (Ubuntu)
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, is that only happening with spotify? do you get any dialog at all? the ability to blog logout should trigger a confirmation dialog, it's made so you don't close your session with open documents unsaved, other operating system included microsoft ones do that, it's not a security issue

security vulnerability: yes → no
Changed in indicator-session (Ubuntu):
status: New → Incomplete
importance: Undecided → Low
Tormod Hellen (tormod-hellen) wrote :

It only happens with Spotify, yes. No, there is no dialogue except for the normal 'are you sure you want to shut down'. Clicking 'shut down' in that dialogue simply closes the open Spotify window, it does not quit Spotify itself (Spotify still plays music and the indicator is still there). It does not seem to affect any other part of the OS or any other applications.

If there is no open Spotify window Ubuntu shuts down normally.

Matthew Paul Thomas (mpt) wrote :

Seems like there are two bugs here. One in Spotify, that it cancelled the shutdown. And the other in gnome-session, that it didn't visibly blame Spotify for cancelling shutdown (and maybe give you the opportunity to override it).

Changed in indicator-session (Ubuntu):
status: Incomplete → New
Bilal Akhtar (bilalakhtar) wrote :

Ideally Spotify should respont to SIGQUITs and quit gracefully. Looks like it isn't doing that here.

And yes, partially GNOME Session's fault too.

Changed in ayatana-design:
status: New → Invalid
Changed in indicator-session:
status: New → Confirmed
no longer affects: indicator-session (Ubuntu)
Launchpad Janitor (janitor) wrote :

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

Changed in gnome-session (Ubuntu):
status: New → Confirmed
Matthew Paul Thomas (mpt) wrote :

This almost certainly has nothing to do with either bug 616447 or the session menu. Reopening.

no longer affects: indicator-session
no longer affects: ayatana-design
Marius B. Kotsbak (mariusko) wrote :

Could you please try again using the latest version of Ubuntu (12.04). I can not remember seeing this problem there.

Changed in gnome-session (Ubuntu):
status: Confirmed → Incomplete
Marius B. Kotsbak (mariusko) wrote :

I was not able to reproduce it now, neither with the Spotify window open or closed (with music playing). Which version of Spotify do you have? Is it set up with apt-repository (line "deb http://repository.spotify.com stable non-free")? What is the output of:

"apt-cache policy spotify-client"

Tormod Hellen (tormod-hellen) wrote :

The problem is resolved in 12.04 - almost. In 12.04, with Spotify running (window open or no), Ubuntu will simply pause for a few seconds (10 to 20?) and then shutdown normally. Only a minor nuisance any way you look at it.

the output of "apt-cache policy spotify-client" is:
spotify-client:
  Installed: 1:0.8.3.278.g21c7566.632-1
  Candidate: 1:0.8.3.278.g21c7566.632-1
  Version table:
 *** 1:0.8.3.278.g21c7566.632-1 0
        500 http://repository.spotify.com/ stable/non-free amd64 Packages
        100 /var/lib/dpkg/status

Changed in gnome-session (Ubuntu):
status: Incomplete → Invalid
Marius B. Kotsbak (mariusko) wrote :

Okay, I guess then it is a bug in the Spotify application. Marking as invalid in gnome-session as it probably needs to wait some time to let the application quit (maybe Spotify tries to logout via network to signal the account can be used elsewhere) and that it is not confirmed that it is not a new version of Spotify that has changed tve the logout behavior.

I would recommend reporting this problem in the Spotify forums if it still is an issue.

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

Other bug subscribers