Compile Mode Games Only Work in Linux Terminal

Reporter: time-killer-games  |  Status: open  |  Last Modified: November 17, 2018, 06:55:09 AM

I can only run the game if i open it from the terminal, otherwise...

The Fucking:
screenshot from 2018-10-27 14-00-40

RobertBColton  
This is actually a duplicate of #701 and everybody ignored me when I filed that issue.
RobertBColton  

@time-killer-games Please take a look at #1425 which @JoshDreamland said should fix it.
time-killer-games  

I confirm the issue is fixed by that pr.
RobertBColton  

This issue upsets me. There's several layers to the issue here too. So what's going on is gcc versions newer than version 6 are building PIEs by default. This causes MIME type detection of the produced executables to see them as shared objects instead of executables. And this is what causes Nautilus to not be able to run the game:
https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/1635376

Now, the reason I hate Josh's #1425 proposal is because older gccs complain about not knowing the command line option. Also, PIE is actually safer for security reasons anyway, even Chrome ships a PIE enabled build. We happen to be using Ubuntu Trusty for Travis still, so obviously it doesn't know about PIE either. The best solution seems to be that we should check the shell to see if gcc is configured with PIE or not.
https://bugs.launchpad.net/sbcl/+bug/1668986
https://launchpadlibrarian.net/309280563/sbcl-1.3.14-gentoo-fix_nopie_for_hardened_toolchain.patch

Please sign in to post comments, or you can view this issue on GitHub.