diff options
author | Ruben Rodriguez <ruben@activitycentral.com> | 2013-07-29 17:31:55 (GMT) |
---|---|---|
committer | Ruben Rodriguez <ruben@activitycentral.com> | 2013-07-29 17:31:55 (GMT) |
commit | db1da01efa037e0c5a691468657ba8d8be01175a (patch) | |
tree | e4995e67c5746352390a6d27949137bdd32a7f2e | |
parent | acd90719da834e814f08dbb9378657b95f8dcd5b (diff) |
Wrap activity last-used-time-update in a try/except so activities can be read-only
-rw-r--r-- | src/jarabe/model/shell.py | 5 |
1 files changed, 4 insertions, 1 deletions
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 |