mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: remove isGnome3Session function
This is only used for archaic distros. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
3abb82bfd5
commit
86e3ceb0e9
5 changed files with 0 additions and 63 deletions
|
@ -282,21 +282,6 @@ QString URLDialog::url() const
|
|||
return ui.urlField->toPlainText();
|
||||
}
|
||||
|
||||
bool isGnome3Session()
|
||||
{
|
||||
#if defined(QT_OS_WIW) || defined(QT_OS_MAC)
|
||||
return false;
|
||||
#else
|
||||
if (qApp->style()->objectName() != "gtk+")
|
||||
return false;
|
||||
QProcess p;
|
||||
p.start("pidof", QStringList() << "gnome-shell");
|
||||
p.waitForFinished(-1);
|
||||
QString p_stdout = p.readAllStandardOutput();
|
||||
return !p_stdout.isEmpty();
|
||||
#endif
|
||||
}
|
||||
|
||||
#define COMPONENT_FROM_UI(_component) what->_component = ui._component->isChecked()
|
||||
#define UI_FROM_COMPONENT(_component) ui._component->setChecked(what->_component)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue