https://kotlinlang.org logo
#compose-desktop
Title
# compose-desktop
u

姜尚

03/17/2023, 9:43 AM
On Windows, how do I set the application to start when the user logs in, or unset it when it runs
n

Nikolay Rykunov

03/17/2023, 5:56 PM
Hi! There is no such built in support in Compose Desktop, unfortunately. One of the ways that you can proceed is to modify registry: https://learn.microsoft.com/en-us/windows/win32/setupapi/run-and-runonce-registry-keys To access registry you can use 3-rd party libraries, like
jna-platform
m

mikehearn

03/19/2023, 12:23 PM
If you package your app with Conveyor then you can set the
app.windows.start-on-login = true
key in your config. See here: https://conveyor.hydraulic.dev/7.1/configs/windows/#start-on-login
27 Views