#!/usr/bin/python import os import sys display=os.environ["DISPLAY"] if(display==None): print("No DISPLAY found") sys.exit(1) #guessing wherever are running on a light client x11address=display.split(":") if(x11address[0]==""): n4daddress="localhost" else: n4daddress=x11address[0] os.system("n4d-client -h {0} -m run_xdg_scripts -c Hardware -a {1}".format(n4daddress,display))