mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-07-20 13:59:40 +02:00
remove screen size parameter
This commit is contained in:
parent
d6389c1ac4
commit
98a8a2bbdb
2 changed files with 1 additions and 10 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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 2>/dev/null &" % image)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue