io/process!: replace manageLifetime with startDetached

In most cases this is what was desired for usages of
manageLifetime. Starting the process in a detached state also makes
sure the process hierarchy will not result in the child being killed when
Quickshell is killed.
This commit is contained in:
outfoxxed 2025-03-12 00:53:36 -07:00
parent c5bea858a0
commit 0662c37d67
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E
5 changed files with 37 additions and 76 deletions

View file

@ -7,8 +7,6 @@ qt_add_library(quickshell-io STATIC
ipchandler.cpp
)
add_library(quickshell-io-init OBJECT init.cpp)
if (SOCKETS)
target_sources(quickshell-io PRIVATE socket.cpp)
endif()
@ -24,9 +22,7 @@ qt_add_qml_module(quickshell-io
install_qml_module(quickshell-io)
target_link_libraries(quickshell-io PRIVATE Qt::Quick)
target_link_libraries(quickshell-io-init PRIVATE Qt::Qml)
target_link_libraries(quickshell PRIVATE quickshell-ioplugin quickshell-io-init)
target_link_libraries(quickshell PRIVATE quickshell-ioplugin)
qs_module_pch(quickshell-io)