fman-users / fman

Issue tracker for fman, a cross-platform file manager
https://fman.io
240 stars 3 forks source link

fman terminal opens powershell only with "restricted" execution policy #827

Closed thomas-haslwanter closed 3 years ago

thomas-haslwanter commented 3 years ago

In my "Core Settings (Windows).json" I have the following settings for the fman terminal:

    "terminal": {
        "args": "C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe",
        "cwd": "{curr_dir}"
        }

While this DOES open a powershell, it only opens it with "Execution-Policy" set to "restricted". This makes it impossible to run any (e.g. startup) scripts in this shell. In contrast, if I execute the same command from the command line, or in any other way I have tried (Terminal, Powershell), the new powershell opens with my default execution-policy ("unrestricted")

My question: why does fman open the terminal with a different execution policy, and how can I change that?

thomas-haslwanter commented 3 years ago

The following works

    "terminal": {
        "args": ["C:/Users/thomas/AppData/Local/Microsoft/WindowsApps/wt.exe"],
        "cwd": "{curr_dir}"
        }
Note that I have installed Windows Terminal, and use the shortcut "wt" for it.