mcserversoft / IssueTracker

Public issue tracker for mcss.
https://www.mcserversoft.com
1 stars 0 forks source link

Automatically starting MCSS via Task scheduler on Windows #17

Open Luporion opened 2 days ago

Luporion commented 2 days ago

Describe the bug mcss.exe only starts in background, no gui of the program is shown (also nothing in tray), but the webinterface works. When someone then starts the software manually, the gui shows up but actually another instance of MCSS is started

To Reproduce Steps to reproduce the behavior:

  1. Add a task starting mcss.exe before boot
  2. log into OS
  3. see no gui 🥲
  4. start mcss thinking it would use the background process
  5. it actually starts another instance with gui

Expected behavior mcss should go to tray ot give some other way to access gui without closing the other instance and having to shut down all the servers

Screenshots MCSS Webpanel working directly after boot: image MCSS in background after boot and login with MCSS not having UI: image MCSS not in tray or anywhere really: image 2nd MCSS instance when launching the program manually after login: image

Desktop (please complete the following information):

Additional context I'm hosting a server for me and some friends. When im not home, i wake up the server using WOL (wake-on-lan) and a automatic task launches mcss.exe while another launches a VPN called tailscale (which i also have installed on my phone, so i would't have to expose the webpanel). I then utilize the webpanel to either manually start the server from my phones browser or a task whithin the webpanel automatically starts a server. If there is any need to do anything else, i connect via RDP to look into the Desktop.

Am i missing something? Is there a way to configure this?

Leonito2003 commented 2 days ago

Hi, first of all this issue isn't one and has nothing to do with mcss, it's just that you used "Run whether the user is logged in or not" in task scheduler, which by design runs tasks in the background with no gui whatsoever.

Second, you don't need to use task scheduler to start mcss, as the app already includes an option to start with windows, and even to start minimized in the tray if you want.

Luporion commented 17 hours ago

No, Mcss only as a option to start at login. I'm talking about starting directly after boot, even before login. Otherwise, someone would have to log in via RDP or autologin needs to be enabled, which is horrendously insecure.

Leonito2003 commented 15 hours ago

After a quick search, it seems like you can configure windows to open the session but keep it locked at boot, however your need the pro edition as this is a group policy : https://superuser.com/a/1786930/1067313