[kupfer/maint] chromium: if there is no chromium bookmarks file, look for a google-chrome one
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer/maint] chromium: if there is no chromium bookmarks file, look for a google-chrome one
- Date: Sat, 6 Feb 2010 13:32:00 +0000 (UTC)
commit 58595830f18a3314a06d1a66dd1ab2130233413e
Author: William Friesen <wfriesen gmail com>
Date: Wed Feb 3 02:45:05 2010 +1100
chromium: if there is no chromium bookmarks file, look for a google-chrome one
Launchpad bug: https://bugs.launchpad.net/kupfer/+bug/513602
kupfer/plugin/chromium.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/kupfer/plugin/chromium.py b/kupfer/plugin/chromium.py
index 6ce24c2..cbff05a 100644
--- a/kupfer/plugin/chromium.py
+++ b/kupfer/plugin/chromium.py
@@ -30,6 +30,11 @@ class BookmarksSource (AppLeafContentMixin, Source):
def get_items(self):
fpath = config.get_config_file("Bookmarks", package="chromium/Default")
+
+ # If there is no chromium bookmarks file, look for a google-chrome one
+ if not fpath:
+ fpath = config.get_config_file("Bookmarks",package="google-chrome/Default")
+
if fpath:
try:
return self._get_chromium_items(fpath)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]