don't remove plist on unmount
This commit is contained in:
@@ -180,17 +180,6 @@ void fuse_base::destroy_(void *ptr) {
|
||||
void fuse_base::destroy_impl(void * /* ptr */) {
|
||||
REPERTORY_USES_FUNCTION_NAME();
|
||||
|
||||
#if defined(__APPLE__)
|
||||
if (not foreground_ &&
|
||||
not utils::remove_launchd_plist(
|
||||
utils::path::combine("~", {"/Library/LaunchAgents"}), label_,
|
||||
false)) {
|
||||
utils::error::raise_error(
|
||||
function_name,
|
||||
fmt::format("failed to remove launchd entry|label|{}", label_));
|
||||
}
|
||||
#endif // defined(__APPLE__)
|
||||
|
||||
if (not foreground_) {
|
||||
repertory::project_cleanup();
|
||||
}
|
||||
|
@@ -327,7 +327,7 @@ void mgmt_app_config::set_auto_start(bool auto_start) {
|
||||
function_name, utils::get_last_error_code(),
|
||||
"failed to create auto-start entry|name|repertory");
|
||||
}
|
||||
} else if (utils::remove_launchd_plist(plist_path, label, true)) {
|
||||
} else if (utils::remove_launchd_plist(plist_path, label, false)) {
|
||||
utils::error::handle_info(function_name,
|
||||
"removed auto-start entry|name|repertory");
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user