Codebase list xapp / 5b230cf
build/install: Make the favorite gtk module's xinit file executable. ref: https://github.com/linuxmint/nemo/issues/2575#issuecomment-735019974 Michael Webster 3 years ago
3 changed file(s) with 24 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
0 install_data(['80xapp-gtk3-module.sh'],
1 install_dir: join_paths(get_option('sysconfdir'), 'X11', 'xinit', 'xinitrc.d')
0 xinitrc_dir = join_paths(get_option('sysconfdir'), 'X11', 'xinit', 'xinitrc.d')
1 filename = '80xapp-gtk3-module.sh'
2
3 install_data([filename],
4 install_dir: xinitrc_dir
25 )
6
7 meson.add_install_script(join_paths(meson.source_root(), 'meson-scripts', 'module_xinit_fix_perms.py'),
8 xinitrc_dir,
9 filename
10 )
0 #!/usr/bin/python3
1
2 import os
3 import sys
4 import subprocess
5
6 if os.environ.get('DESTDIR'):
7 file = "%s/%s/%s" % (os.environ.get('DESTDIR'), sys.argv[1], sys.argv[2])
8 else:
9 file = os.path.join(sys.argv[1], sys.argv[2])
10
11 subprocess.call(['sh', '-c', 'chmod +x %s' % file])
12
13 exit(0)