Package Details: chrome-shutdown-hook 1.3.2-1

Git Clone URL: (read-only, click to copy)
Package Base: chrome-shutdown-hook
Description: Gently shutdown Chrome/Chromium on logout from Gnome Shell.
Upstream URL:
Keywords: chrome chromium shutdown
Licenses: GPL
Submitter: visit
Maintainer: Terence
Last Packager: Terence
Votes: 6
Popularity: 0.000000
First Submitted: 2015-05-17 22:45 (UTC)
Last Updated: 2016-09-01 07:13 (UTC)

Dependencies (4)

Required by (0)

Sources (2)

Latest Comments

notuxius commented on 2019-03-02 19:15 (UTC)

Chromium shows restore session popup even if the hook is enabled in Tweaks app, Chromium 72, Manjaro Gnome

zerophase commented on 2017-06-16 21:41 (UTC)

The latest version of Chrome has seemed to have mostly fixed the issue. Only once every couple boots require restoring tabs.

saivert commented on 2017-06-16 20:59 (UTC)

This hasn't been an issue in Chromium in over a year. Just reset your Chromium profile to defaults in Settings. That solved it for me. Usually a corrupt profile or some crappy Extension is the culprit. I no longer need this tool.

Terence commented on 2017-04-27 23:08 (UTC)

@elimpfor I'm slowly gathering information and reading docs, any help is appreciated :).

ncoder-2 commented on 2017-04-27 23:06 (UTC)

Any luck on this @Terence?

ncoder-2 commented on 2017-04-12 17:02 (UTC)

Cool thanks!

Terence commented on 2017-04-12 16:47 (UTC)

@elimpfo I also have this error and I think it's because it's now using deprecated APIs so I will try to write from scratch.

ncoder-2 commented on 2017-04-12 16:39 (UTC)

I'm getting this error running the hook: import gnome ImportError: No module named gnome

zerophase commented on 2016-08-31 18:06 (UTC)

@Terence I have it in startup for Cinnamon. Seemed to be running, since Chrome at shutdown would crash. Wonder if running it through systemd would change the behavior on Cinnamon.

Terence commented on 2016-08-31 18:01 (UTC)

@zerophase Good you ask, the script is triggered when you click on the shutdown button and the confirmation prompt appears.

zerophase commented on 2016-08-31 17:19 (UTC) (edited on 2016-08-31 17:30 (UTC) by zerophase)

@Terence Even, with PSD disabled I'm still having to restore Chrome after startup. How are you running the script at shutdown?

Terence commented on 2016-08-31 16:40 (UTC)

@zerophase It works for me with any number of windows opened so maybe it comes from psd; could you please try with the new version and with psd disabled?

zerophase commented on 2016-08-13 20:50 (UTC) (edited on 2016-08-13 21:42 (UTC) by zerophase)

@Terence I'm running Chrome 52.0.2743.116-1, and using Profile-sync-daemon to store Chrome's profile in ram and sync it back to disk.

Terence commented on 2016-08-13 20:14 (UTC)

@zerophase Hmm this is weird could you please tell me which version of chrome you are using?

zerophase commented on 2016-08-13 07:55 (UTC) (edited on 2016-08-13 18:44 (UTC) by zerophase)

@Terence Well, it only works for closing 2 Chrome Windows. I'm guessing you need a while loop to handle an unknown amount of open Chromes. Still getting the restore chrome dialog too, and Chrome extensions crash. (Think that might just be an incompatibility between gnome and cinnamon)

Terence commented on 2016-08-12 18:33 (UTC)

@zerophase Indentation should be fixed now, thanks for the feedback so far.

zerophase commented on 2016-08-12 17:09 (UTC)

@Terence just updated it. Looks like there might be a whitespace issue in chrome-shutdown-hook.

Terence commented on 2016-08-12 11:38 (UTC)

@zerophase sorry should be fixed when you use multiple windows now.

zerophase commented on 2016-08-12 04:36 (UTC)

@Terence you're code seems to be kind of working. Usually I have multiple Chrome windows open. Since, the update I've been getting notifications about Chrome crashing for one of the Windows I have open.

Terence commented on 2016-08-11 15:09 (UTC)

@zerophase There was a problem with the code preventing it to actually work so please try again, thanks.

zerophase commented on 2016-08-11 00:10 (UTC)

@visit Yeah, it doesn't work in Cinnamon. Currently, the script doesn't do anything when I have it setup to start with the desktop. (Still getting restore Chrome dialog) I'll have to see which python packages are needed for this to support Cinnamon.

visit commented on 2016-08-11 00:03 (UTC)

@zerophase I have no idea if Cinnamon is still compatible with the gnome python package. Do you mind to try it?

zerophase commented on 2016-08-10 22:48 (UTC) (edited on 2016-08-10 22:50 (UTC) by zerophase)

@visit I mean do you know if this is compatible with Cinnamon. Actually looking at it some more it looks like it would definitely work with Cinnamon.

visit commented on 2016-08-10 05:54 (UTC)

@zerophase not sure what you mean by "work as is in Cinnamon". But yes, it prevents having to restore tabs.

zerophase commented on 2016-08-09 22:01 (UTC)

Does this work as is in Cinnamon, and does it prevent having to restore Chrome's state after a shutdown?