NativeCam raspberry Pi 4
Yes, I believe the line is required for gscreen to load to custom ui
From the gscreen wiki
There is a switch in the INI file to set set the base name: -c name so Gscreen looks for MYNAME.glade and MYNAME_handler.py. HAL pins will start with this name too.
When I start my custom screen it comes up as gscreen-lathezy...hmmm.
if val not in ['axis', 'gmoccapy', 'gscreen'] : mess_dlg(_("DISPLAY can only be 'axis', 'gmoccapy' or 'gscreen'")) sys.exit(-1)
You can remove this code or comment the last line if you know what you are doing
Honestly, I don't but...I tried to do what you said
and changed the code (around line 2384) to
If yes ncam.py will have to be modified to find the value at position 0 of DISPLAY
test_str = ini_instance.find('DISPLAY', 'DISPLAY') print ("test-strg = %s") % test_str # valid options gscreen or custom gscreen, axis, gmocappy match_gscreen = re.search(r"\b(gscreen)\b",test_str) if match_gscreen.start() == 0: print("match found at position %s") % match_gscreen.start() val = 'gscreen'
Seemed to work perfect. Not sure how you would change this to load all three options though. It was pretty much a miracle that I got that to work.
pos = val.find(' ') if (pos > -1) : val = val[0:pos]
val = ini_instance.find('DISPLAY', 'DISPLAY')
if val not in ['axis', 'gmoccapy', 'gscreen'] : glb.mess_dlg(_("DISPLAY can only be 'axis', 'gmoccapy' or 'gscreen'")) sys.exit(-1)
and at line no ~4978 substituting here 'val' by 'dp'
Those are the iines of published version
Manjaro is not supported by packagecloud
Follow the instruction in the setup script :
"For example, to force Ubuntu Trusty: os=ubuntu dist=trusty ./script.sh"
I have not tried it myself.