GH-1389 wrap QDesktopServices and QProcess::startDetached
Essentially do not pass some environment variables to subprocesses: * LD_PRELOAD * LD_LIBRARY_PATH * LD_DEBUG * QT_PLUGIN_PATH * QT_FONTPATH
This commit is contained in:
parent
d1e344f28f
commit
4d0caf6254
19 changed files with 235 additions and 72 deletions
|
@ -25,7 +25,7 @@
|
|||
#include "minecraft/ModList.h"
|
||||
#include "minecraft/LegacyInstance.h"
|
||||
#include "Env.h"
|
||||
#include <FileSystem.h>
|
||||
#include <DesktopServices.h>
|
||||
#include "MultiMC.h"
|
||||
#include <GuiUtil.h>
|
||||
|
||||
|
@ -146,7 +146,7 @@ void LegacyJarModPage::on_rmJarBtn_clicked()
|
|||
|
||||
void LegacyJarModPage::on_viewJarBtn_clicked()
|
||||
{
|
||||
FS::openDirInDefaultProgram(m_inst->jarModsDir(), true);
|
||||
DesktopServices::openDirectory(m_inst->jarModsDir(), true);
|
||||
}
|
||||
|
||||
void LegacyJarModPage::jarCurrent(QModelIndex current, QModelIndex previous)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue