Search Unity

Question Building for a linux arcade cabinet, best practice/suggestions?

Discussion in 'Linux' started by SimonJ9, Oct 8, 2021.

  1. SimonJ9

    SimonJ9

    Joined:
    Feb 5, 2018
    Posts:
    17
    Hi guys,
    I'm trying to put a game originally developed for Windows into an arcade cabinet running Linux. The build currently runs fine, but I want some features to make it feel more like an actual arcade machine:

    1. Put buttons in the game menu to shutdown/reboot the machine.
    The game has been developed with il2cpp, so all the Process.Start() calls will not work. On Windows I Pinvoked functions from Win32 when I needed the game to do system calls. Is there any Linux equivalent to that? If I do DllImport on any linux library and do something like "sudo shutdown", is it possible to shutdown the machine without requesting for account password/popping up a terminal?

    2. Disable the super key, and maybe some other system shortcuts
    I already have a python script to disable the super key. I'm wondering whether it's better to let the game do system calls (if possible) and disable the keys or just disable the key with an external script.

    I'm a Linux newbie here, any suggestions are highly appreciated. Thank you in advance!