This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gi.repository.Atk | |
import gi.repository.GLib | |
import gi.repository.GObject | |
import gi.repository.Gdk | |
import gi.repository.GdkPixbuf | |
import gi.repository.Gio | |
import gi.repository.Pango | |
import gi.repository.cairo | |
import typing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# First pass | |
mode = 500 | |
perms = [] | |
for group_index in range(2, -1, -1): | |
group = mode >> (group_index * 3) & 7 | |
perms.extend([p if group & 1 << 2 - i else '-' for i, p in enumerate(('r', 'w', 'x'))]) | |
print "".join(perms) | |
# Second pass | |
mode = 500 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gtk | |
import gio | |
import nautilus | |
# Diff browsers in priority order | |
diff_browsers = ("meld",) | |
# Version control history browsers in priority order | |
vc_browsers = ("giggle", "gitg") | |
def scan_apps(): |