Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRuben Rodriguez <ruben@activitycentral.com>2013-07-29 17:31:55 (GMT)
committer Ruben Rodriguez <ruben@activitycentral.com>2013-07-29 17:31:55 (GMT)
commitdb1da01efa037e0c5a691468657ba8d8be01175a (patch)
treee4995e67c5746352390a6d27949137bdd32a7f2e
parentacd90719da834e814f08dbb9378657b95f8dcd5b (diff)
Wrap activity last-used-time-update in a try/except so activities can be read-only
-rw-r--r--src/jarabe/model/shell.py5
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