Mono Bug : Magic number is wrong: 542

后端 未结 2 2017
有刺的猬
有刺的猬 2021-02-18 17:55

I am trying to compile a C# Hello World application in Rider on Linux. When I try to run the app, I am promted the following exception:

Unhandled Exception:
Syst         


        
2条回答
  •  孤城傲影
    2021-02-18 18:24

    The means exactly this: "I want to run your script, but you need to specify the terminal you want me to use"

    In GoG version of Stardew Valley, the script in question is: ./start.sh Launching this causes the above error. If instead:

    export 'TERM=roxterm' && ./start.sh
    

    then it works because I have the roxterm terminal installed on my system and the script can use it to execute. What I do know is the global parameter in Ubuntu that tells scrips use this unless it is: Default Applications

    Looking at snippet of the script, originally it is:

    run_game() {
        echo "Running ${GAME_NAME}"
        cd game
        chmod +x *   
        ./"StardewValley"
    }
    

    Corrected for roxterm it would be:

    run_game() {
        echo "Running ${GAME_NAME}"
        cd game
        chmod +x *   
     export 'TERM=roxterm' && ./"StardewValley"
    }
    

    The latter solution works with application launchers and is thus superior.

提交回复
热议问题