carp: Check-in [ba564fa9d2]

A python graphical and terminal EncFS front-end

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Use a config file option to ignore certain file name patterns
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:ba564fa9d2b8744db3360e5c95b6242ffdce0fe5b7d7b14c8c16da89e32724ce
User & Date: milouse 2017-10-12 17:38:24
Context
2017-10-12
18:59
Add our own icon check-in: 246a245449 user: milouse tags: trunk
17:38
Use a config file option to ignore certain file name patterns check-in: ba564fa9d2 user: milouse tags: trunk
2017-09-25
20:26
Hide some temporary files from the last changes view check-in: fe6094c783 user: milouse tags: trunk
Changes

Changes to carp/carpgui.py.

39
40
41
42
43
44
45
46
47
48
49







50
51
52
53
54
55
56
}


class CarpGui:
    def __init__(self):
        self.activity_re = re.compile("^\[([0-9\s:-]+)\] (.+) "
                                      "(created|deleted|modified|moved)$")
        self.lock_re = re.compile("(?:^\.~.+#|.+~$|.+\.lock$|"
                                  ".+~\.[A-Z0-9]{6}$)")
        self.parse_args()
        self.sm = StashManager(self.config_file)







        Notify.init("Carp")

        self.must_autostart = os.path.isfile(os.path.join(
            xdg_config_home, "autostart", "carp.desktop"))

        self.tray = Gtk.StatusIcon()
        self.tray.set_from_icon_name("folder_locked")







<
<


>
>
>
>
>
>
>







39
40
41
42
43
44
45


46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
}


class CarpGui:
    def __init__(self):
        self.activity_re = re.compile("^\[([0-9\s:-]+)\] (.+) "
                                      "(created|deleted|modified|moved)$")


        self.parse_args()
        self.sm = StashManager(self.config_file)

        hide_file_pattern = "(?:^\.~.+\#|^\.\#|~$|\.lock$|~\.[A-Z0-9]{6}$)"
        if "general" in self.sm.config and \
           "hide_file_pattern" in self.sm.config["general"]:
            hide_file_pattern = self.sm.config["general"]["hide_file_pattern"]
        self.lock_re = re.compile(hide_file_pattern)

        Notify.init("Carp")

        self.must_autostart = os.path.isfile(os.path.join(
            xdg_config_home, "autostart", "carp.desktop"))

        self.tray = Gtk.StatusIcon()
        self.tray.set_from_icon_name("folder_locked")