mirror of
https://github.com/nchevsky/systemrescue-zfs.git
synced 2026-04-04 22:07:30 +00:00
Merge branch 'dovnc-startx' into 'main'
automatically start x11 if "dovnc" option is given (#310) See merge request systemrescue/systemrescue-sources!248
This commit is contained in:
commit
a30ed60994
1 changed files with 1 additions and 1 deletions
|
|
@ -162,7 +162,7 @@ if rootcryptpass != "":
|
|||
errcnt+=1
|
||||
|
||||
# Auto-start the graphical environment (tty1 only)
|
||||
if dostartx == True:
|
||||
if dostartx == True or dovnc == True:
|
||||
str = '[[ ! $DISPLAY ]] && [[ ! $SSH_TTY ]] && [[ $XDG_VTNR == 1 ]] && startx'
|
||||
if (os.path.exists("/root/.bash_profile") == False) or (open("/root/.bash_profile", 'r').read().find(str) == -1):
|
||||
file1 = open("/root/.bash_profile", "a")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue