From db1da01efa037e0c5a691468657ba8d8be01175a Mon Sep 17 00:00:00 2001 From: Ruben Rodriguez Date: Mon, 29 Jul 2013 17:31:55 +0000 Subject: Wrap activity last-used-time-update in a try/except so activities can be read-only --- diff --git a/src/jarabe/model/shell.py b/src/jarabe/model/shell.py index 6078b3c..a8fbfce 100644 --- a/src/jarabe/model/shell.py +++ b/src/jarabe/model/shell.py @@ -608,7 +608,10 @@ class ShellModel(GObject.GObject): current_timestamp = time.time() # 1. On filesystem. - os.utime(bundle_path, (os.stat(bundle_path).st_mtime, current_timestamp)) + try: + os.utime(bundle_path, (os.stat(bundle_path).st_mtime, current_timestamp)) + except: + pass # 2. On the activities-list. from jarabe.desktop.homewindow import get_instance -- cgit v0.9.1