I'm trying to start a non-GUI program on OS boot up and before GDM user logon.
(I am using GNOME based RHEL 8. My purpose is start a WINE based .NET program in a remote location such as factories.)
When I start the program with a shell script for chkconfig command.
The program itself worked correctly.
(Memo: I used "sudo -u <user> <command>" shell command to start the program with an user privilege.)
But when I start a GUI-based wine program after the logon via GNOME(gdm),
It displays the following message and failed.
Code: Select all
$ winecfg
0150:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0150:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
I'd appreciate if somebody could give me an advice to start a non-GUI wine program on OS boot-up
before GNOME user login and still keep the functionality of GUI-based wine programs.
Are these methods considered possible?
1) Editing gdm.conf and register a shell script for pre-session.
2) Start the target program after gdm process run by systemd.
3) Before starting the non-GUI program, set DISPLAY variable manually.
I found a workaround that is to enable autologin and register the non-GUI program into the GNOME
startup applications and register the screen lock program also for password lock.
But if possible I would like to take a way not depending on the autologin for ease of user operation.
Reference:
I found the following topic and I recognize wine program requires running X server.
viewtopic.php?t=2491
Sincerely,
--
Tomonori Manome