Skip to content

Restart of nextcloud-client may fail after update #45

@olifre

Description

@olifre

For some systems, we observe that:

if ($clientStarted -and (!($pp['norelaunch']))) {
& $clientPath
}

fails with:

ERROR: The term 'C:\Program Files\Nextcloud\nextcloud.exe C:\Program Files\Nextcloud\nextcloud.exe' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

I believe that is due to:

$processInfo = Get-Process -Name "nextcloud" -EA 0

matching multiple processes, and the building a concatenated string, if e.g. the Nextcloud tray and the app is open in parallel.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions