From 808025819d5b83cca8254fb72464a0cc1593b85a Mon Sep 17 00:00:00 2001 From: Laurent Bachelier Date: Sun, 24 Mar 2013 14:12:13 +0100 Subject: [PATCH] Not used, setup.py installs them --- tools/install_xdg.py | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100755 tools/install_xdg.py diff --git a/tools/install_xdg.py b/tools/install_xdg.py deleted file mode 100755 index 670af856..00000000 --- a/tools/install_xdg.py +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env python -from __future__ import with_statement - -import glob -import subprocess -import os -import sys - - -def check_executable(executable): - with open('/dev/null', 'w') as devnull: - process = subprocess.Popen(['which', executable], stdout=devnull) - return_code = process.wait() - if return_code == 0: - return True - else: - print >>sys.stderr, 'Error: %s is not installed on your system.' % executable - sys.exit(1) - - -def install_xdg(): - print 'installing desktop menu files' - check_executable('xdg-desktop-menu') - - os.system('xdg-desktop-menu install --novendor desktop/*.desktop') - for filepath in glob.glob('icons/*'): - print 'installing icon %s' % filepath - os.system('xdg-icon-resource install --size 64 --novendor %s' % filepath) - -install_xdg()