ttalvitie / browservice

Browservice: Browse the modern web on historical browsers
MIT License
1.08k stars 32 forks source link

Make Browservice run silent #86

Closed vladger closed 1 year ago

vladger commented 1 year ago

Is there any way to run Browservice silent without visible shell, for example, when you turn on the PC (StartUp)? I tried different shortcut options, no result. "Hidden in tray" shortcut option doesn't help.

ttalvitie commented 1 year ago

Currently Browservice is implemented as a console app on Windows as it was the simplest way to port it to Windows; at some point in the future it would probably make it run as a service, so that auto starting and running in the background would be more natural. But for now, let's try to explore some possible solutions for the current console-based Browservice:

I assume that by StartUp you mean the traditional startup folder method for auto-starting programs upon login (i.e., placing shortcuts to the C:\Users\USERNAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup directory). The Windows Task Scheduler is another option for starting programs automatically at boot (it can even startup things before login, but haven't tested whether Browservice can run in a non-graphical environment on Windows, and how it needs to be invoked for that).

The simplest solution is indeed to create a shortcut to browservice.exe and place it in the StartUp directory (with the proper command line arguments appended to the target). If I set the shortcut Run property in the Shortcut tab to "Minimized", then it will start minimized, meaning that the window will not be open at boot, but it will be available in the task bar; this could be useful for viewing the log or closing Browservice. image

If you really want to hide it from the task bar as well, then the only solution I know is the following:

If you run Browservice hidden in the background, make sure that you don't forget it is running, particularly if you connect the computer to untrusted networks.