Fix Zenity On Wayland
This commit is contained in:
parent
77d7b82a14
commit
be300a2809
@ -110,7 +110,7 @@ static void run_zenity_and_set_env(const char *env_name, std::vector<std::string
|
|||||||
// Create Full Command
|
// Create Full Command
|
||||||
std::vector<std::string> full_command;
|
std::vector<std::string> full_command;
|
||||||
full_command.push_back("zenity");
|
full_command.push_back("zenity");
|
||||||
full_command.push_back("--class");
|
full_command.push_back("--name");
|
||||||
full_command.push_back(GUI_TITLE);
|
full_command.push_back(GUI_TITLE);
|
||||||
full_command.insert(full_command.end(), command.begin(), command.end());
|
full_command.insert(full_command.end(), command.begin(), command.end());
|
||||||
// Convert To C Array
|
// Convert To C Array
|
||||||
|
@ -20,7 +20,7 @@ static void show_report(const char *log_filename) {
|
|||||||
const char *command[] = {
|
const char *command[] = {
|
||||||
"zenity",
|
"zenity",
|
||||||
"--title", DIALOG_TITLE,
|
"--title", DIALOG_TITLE,
|
||||||
"--class", GUI_TITLE,
|
"--name", GUI_TITLE,
|
||||||
"--width", CRASH_REPORT_DIALOG_WIDTH,
|
"--width", CRASH_REPORT_DIALOG_WIDTH,
|
||||||
"--height", CRASH_REPORT_DIALOG_HEIGHT,
|
"--height", CRASH_REPORT_DIALOG_HEIGHT,
|
||||||
"--text-info",
|
"--text-info",
|
||||||
|
@ -34,7 +34,7 @@ static void *chat_thread(__attribute__((unused)) void *nop) {
|
|||||||
const char *command[] = {
|
const char *command[] = {
|
||||||
"zenity",
|
"zenity",
|
||||||
"--title", DIALOG_TITLE,
|
"--title", DIALOG_TITLE,
|
||||||
"--class", GUI_TITLE,
|
"--name", GUI_TITLE,
|
||||||
"--entry",
|
"--entry",
|
||||||
"--text", "Enter Chat Message:",
|
"--text", "Enter Chat Message:",
|
||||||
NULL
|
NULL
|
||||||
|
@ -89,7 +89,7 @@ static void *create_world_thread(__attribute__((unused)) void *nop) {
|
|||||||
const char *command[] = {
|
const char *command[] = {
|
||||||
"zenity",
|
"zenity",
|
||||||
"--title", DIALOG_TITLE,
|
"--title", DIALOG_TITLE,
|
||||||
"--class", GUI_TITLE,
|
"--name", GUI_TITLE,
|
||||||
"--entry",
|
"--entry",
|
||||||
"--text", "Enter World Name:",
|
"--text", "Enter World Name:",
|
||||||
"--entry-text", DEFAULT_WORLD_NAME,
|
"--entry-text", DEFAULT_WORLD_NAME,
|
||||||
@ -116,7 +116,7 @@ static void *create_world_thread(__attribute__((unused)) void *nop) {
|
|||||||
const char *command[] = {
|
const char *command[] = {
|
||||||
"zenity",
|
"zenity",
|
||||||
"--title", DIALOG_TITLE,
|
"--title", DIALOG_TITLE,
|
||||||
"--class", GUI_TITLE,
|
"--name", GUI_TITLE,
|
||||||
"--list",
|
"--list",
|
||||||
"--radiolist",
|
"--radiolist",
|
||||||
"--width", GAME_MODE_DIALOG_SIZE,
|
"--width", GAME_MODE_DIALOG_SIZE,
|
||||||
@ -149,7 +149,7 @@ static void *create_world_thread(__attribute__((unused)) void *nop) {
|
|||||||
const char *command[] = {
|
const char *command[] = {
|
||||||
"zenity",
|
"zenity",
|
||||||
"--title", DIALOG_TITLE,
|
"--title", DIALOG_TITLE,
|
||||||
"--class", GUI_TITLE,
|
"--name", GUI_TITLE,
|
||||||
"--entry",
|
"--entry",
|
||||||
"--only-numerical",
|
"--only-numerical",
|
||||||
"--text", "Enter Seed (Leave Blank For Random):",
|
"--text", "Enter Seed (Leave Blank For Random):",
|
||||||
|
@ -105,4 +105,7 @@ void _init_misc_logging() {
|
|||||||
|
|
||||||
// Print Log On Game Save
|
// Print Log On Game Save
|
||||||
overwrite_calls((void *) Level_saveLevelData, (void *) Level_saveLevelData_injection);
|
overwrite_calls((void *) Level_saveLevelData, (void *) Level_saveLevelData_injection);
|
||||||
|
|
||||||
|
// Disable stdout Buffering
|
||||||
|
setvbuf(stdout, NULL, _IONBF, 0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user