Skip to content

Commit

Permalink
WIP linux zenity installation message
Browse files Browse the repository at this point in the history
  • Loading branch information
NQNStudios committed Sep 22, 2024
1 parent e2761e5 commit efd4908
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/tools/winutil.linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@

#include <sys/utsname.h>
#include <stdio.h>
#include <stdlib.h>

#include "strdlog.hpp"

extern sf::RenderWindow mainPtr;

Expand Down Expand Up @@ -129,6 +132,13 @@ void setWindowFloating(sf::Window& win, bool floating) {
}

void init_fileio() {
std::string command = "zenity --help";
FILE* hfile = popen(command.c_str(), "r");
int result = pclose(hfile);
if(result != 0){
showError("Open Blades of Exile for Linux requires zenity for file management.", "Please install zenity through your distribution's official package manager and try launching Blades of Exile again. Sorry!");
exit(result);
}
}

static std::string runFileDialog(const std::string& file, bool save) {
Expand Down

0 comments on commit efd4908

Please sign in to comment.