No GUI when my build is run from the terminal, working in GDB though?

I’ve built my program successfully via the Linux makefile build and the CLion build. When running from the command line or from CLion, the app starts but the GUI does not appear. The “JUCE 5.3.2” debugging statement is printed. However, when run from GDB the GUI loads and the program works exactly as it does on my Windows machine. I’m running on Manjaro Linux v17 with the Deepin DE.