Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added -NoProfile to fix issues with loading pages for games #4258

Merged
merged 6 commits into from
Jan 11, 2025
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/backend/launcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1341,6 +1341,7 @@ async function callRunner(
.map((part) => `"\`"${part}\`""`)
.join(',')
commandParts = [
'-NoProfile',
'Start-Process',
`"\`"${fullRunnerPath}\`""`,
'-Wait',
Expand Down
2 changes: 2 additions & 0 deletions src/backend/storeManagers/gog/games.ts
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,7 @@ export async function uninstall({
}
} else {
const adminCommand = [
'-NoProfile',
'Start-Process',
'-FilePath',
uninstallerPath,
Expand Down Expand Up @@ -1031,6 +1032,7 @@ export async function update(
const uninstallExeFile = uninstallerFile.replace('ini', 'exe')
if (isWindows) {
const adminCommand = [
'-NoProfile',
'Start-Process',
'-FilePath',
uninstallExeFile,
Expand Down
1 change: 1 addition & 0 deletions src/backend/storeManagers/gog/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ async function runSetupCommand(wineArgs: WineCommandArgs) {
return spawnAsync(
'powershell',
[
'-NoProfile',
'Start-Process',
'-FilePath',
exe,
Expand Down
2 changes: 1 addition & 1 deletion src/backend/storeManagers/nile/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default async function setup(
const exeArguments = action.Args ?? []

if (isWindows) {
const command = ['Start-Process', '-FilePath', action.Command]
const command = ['-NoProfile','Start-Process', '-FilePath', action.Command]
ojsi marked this conversation as resolved.
Show resolved Hide resolved
if (exeArguments.length) {
command.push('-ArgumentList', ...exeArguments)
}
Expand Down
Loading