diff --git a/pandora-box.ini b/pandora-box.ini index 58572dd..2375f58 100644 --- a/pandora-box.ini +++ b/pandora-box.ini @@ -2,9 +2,6 @@ ; Curses mode (full text) CURSES = False -; Screen size (graphic mode) -SCREEN_SIZE = "1024x600" - ; Set USB_AUTO_MOUNT to true is if the OS mount automaticaly mount USB keys USB_AUTO_MOUNT = False diff --git a/pandora-box.py b/pandora-box.py index e832d95..daf4b76 100755 --- a/pandora-box.py +++ b/pandora-box.py @@ -40,13 +40,12 @@ PANDORA_ROOT_URL = "http://127.0.0.1:6100" FAKE_SCAN = False QUARANTINE = False CURSES = True -SCREEN_SIZE = None """ read configuration file """ def config(): global USB_AUTO_MOUNT, PANDORA_ROOT_URL global FAKE_SCAN, QUARANTINE, QUARANTINE_FOLDER - global CURSES, SCREEN_SIZE + global CURSES # intantiate a ConfirParser config = configparser.ConfigParser() # read the config file @@ -60,8 +59,6 @@ def config(): QUARANTINE_FOLDER = config['DEFAULT']['QUARANTINE_FOLDER'] # Curses CURSES = config['DEFAULT']['CURSES'].lower()=="true" - # Screen size - SCREEN_SIZE = config['DEFAULT']['SCREEN_SIZE'] # ---------------------------------------------------------- @@ -91,9 +88,6 @@ def display_image(status): image = "images/pandora-box5.png" else: return -# os.system("killall -9 fbi 2>/dev/null") -# os.system("fbi -T 1 -d /dev/fb0 -noverbose -a %s" % image) - #os.system("convert -resize %s -background black -gravity center -extent %s %s bgra:/dev/fb0" % (SCREEN_SIZE, SCREEN_SIZE, image)) os.system("killall fim 2>/dev/null") os.system("fim -qa %s /dev/null &" % image)