OSDN Git Service

Add bookmark.
[fukui-no-namari/fukui-no-namari.git] / src / fukui-no-namari
index a94640d..fb0c5a1 100755 (executable)
@@ -26,6 +26,7 @@ import getopt
 import sys
 import dbus
 import dbus.service
+import os.path
 
 APPNAME = 'Fukui-no-Namari'
 APPVERSION = '0.1'
@@ -37,6 +38,7 @@ from FukuiNoNamari import board_window
 from FukuiNoNamari import dbus_object
 from FukuiNoNamari import uri_opener
 from FukuiNoNamari import session
+from FukuiNoNamari import bookmark_list
 
 # where are these values ?
 DBUS_NAME_FLAG_ALLOW_REPLACEMENT = 1
@@ -92,6 +94,10 @@ if __name__ == "__main__":
         gnome.init(APPNAME, APPVERSION)
         gobject.threads_init()
 
+        bookmark_path = os.path.join(config.get_config_dir_path(),
+                                     "bookmarks.txt")
+        bookmark_list.init(bookmark_path, "http://menu.2ch.net/bbsmenu.html")
+
         # open some windows
         if uris:
             from FukuiNoNamari.BbsType import bbs_type_judge_uri