Use startup notifications in single instance mode

This commit is contained in:
Kovid Goyal
2017-11-17 20:57:06 +05:30
parent fa1ae39480
commit b08f4ab593
6 changed files with 127 additions and 45 deletions

View File

@@ -197,6 +197,8 @@ def init_env(
]
if not isosx:
ldpaths += ['-lrt']
if '-ldl' not in ldpaths:
ldpaths.append('-ldl')
if '-lz' not in ldpaths:
ldpaths.append('-lz')
@@ -338,7 +340,7 @@ def option_parser():
def find_c_files():
ans, headers = [], []
d = os.path.join(base, 'kitty')
exclude = {'fontconfig.c'} if isosx else {'core_text.m', 'cocoa_window.m'}
exclude = {'fontconfig.c', 'desktop.c'} if isosx else {'core_text.m', 'cocoa_window.m'}
for x in os.listdir(d):
ext = os.path.splitext(x)[1]
if ext in ('.c', '.m') and os.path.basename(x) not in exclude: