Qt/linux: set DISPLAY variable if undefined
This commit is contained in:
@@ -120,6 +120,14 @@ QCoreApplication* createApplication(int& argc, char* argv[])
|
|||||||
if (find_arg(arg_headless, argc, argv))
|
if (find_arg(arg_headless, argc, argv))
|
||||||
return new headless_application(argc, argv);
|
return new headless_application(argc, argv);
|
||||||
|
|
||||||
|
#ifdef __linux__
|
||||||
|
// set the DISPLAY variable in order to open web browsers
|
||||||
|
if (qEnvironmentVariable("DISPLAY", "").isEmpty())
|
||||||
|
{
|
||||||
|
qputenv("DISPLAY", ":0");
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
bool use_high_dpi = true;
|
bool use_high_dpi = true;
|
||||||
|
|
||||||
const auto i_hdpi = find_arg(arg_high_dpi, argc, argv);
|
const auto i_hdpi = find_arg(arg_high_dpi, argc, argv);
|
||||||
|
|||||||
@@ -1109,7 +1109,7 @@ void game_list_frame::ShowContextMenu(const QPoint &pos)
|
|||||||
});
|
});
|
||||||
connect(checkCompat, &QAction::triggered, [=, this]
|
connect(checkCompat, &QAction::triggered, [=, this]
|
||||||
{
|
{
|
||||||
QString link = "https://rpcs3.net/compatibility?g=" + serial;
|
const QString link = "https://rpcs3.net/compatibility?g=" + serial;
|
||||||
QDesktopServices::openUrl(QUrl(link));
|
QDesktopServices::openUrl(QUrl(link));
|
||||||
});
|
});
|
||||||
connect(downloadCompat, &QAction::triggered, [=, this]
|
connect(downloadCompat, &QAction::triggered, [=, this]
|
||||||
|
|||||||
Reference in New Issue
Block a user