mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-26 23:57:22 -08:00
App launcher works
This commit is contained in:
parent
217dbca5ff
commit
deb210e823
1 changed files with 15 additions and 7 deletions
|
@ -47,6 +47,11 @@ koboxAppsDialog::koboxAppsDialog(QWidget *parent) :
|
||||||
checkApps();
|
checkApps();
|
||||||
QStringListModel* model = new QStringListModel(this);
|
QStringListModel* model = new QStringListModel(this);
|
||||||
QStringList list = apps.split("\n", QString::SkipEmptyParts);
|
QStringList list = apps.split("\n", QString::SkipEmptyParts);
|
||||||
|
|
||||||
|
if(checkconfig("/external_root/opt/root/rooted") == true) {
|
||||||
|
list.append("KTerm");
|
||||||
|
}
|
||||||
|
|
||||||
model->setStringList(list);
|
model->setStringList(list);
|
||||||
ui->appsList->setModel(model);
|
ui->appsList->setModel(model);
|
||||||
ui->appsList->setEditTriggers(QAbstractItemView::NoEditTriggers);
|
ui->appsList->setEditTriggers(QAbstractItemView::NoEditTriggers);
|
||||||
|
@ -80,7 +85,12 @@ void koboxAppsDialog::on_launchBtn_clicked()
|
||||||
else {
|
else {
|
||||||
// DPI setting
|
// DPI setting
|
||||||
string_checkconfig(".config/00-kobox/dpiSetting");
|
string_checkconfig(".config/00-kobox/dpiSetting");
|
||||||
dpiSetting = checkconfig_str_val.toStdString();
|
if(checkconfig_str_val == "") {
|
||||||
|
dpiSetting = "150";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
dpiSetting = checkconfig_str_val.toStdString();
|
||||||
|
}
|
||||||
|
|
||||||
// Fullscreen or windowed (i3)
|
// Fullscreen or windowed (i3)
|
||||||
// Mostly windowed except for apps like KTerm which ships its own OSK
|
// Mostly windowed except for apps like KTerm which ships its own OSK
|
||||||
|
@ -91,9 +101,9 @@ void koboxAppsDialog::on_launchBtn_clicked()
|
||||||
string_writeconfig("/external_root/tmp/X_program", "!netsurf");
|
string_writeconfig("/external_root/tmp/X_program", "!netsurf");
|
||||||
}
|
}
|
||||||
if(itemText == "KTerm") {
|
if(itemText == "KTerm") {
|
||||||
string_writeconfig("/external_root/tmp/X_program", "kterm");
|
string_writeconfig("/external_root/tmp/X_program", "kterm -l /usr/local/share/kterm/layouts/keyboard-kt.xml -k 1");
|
||||||
dpiSetting = "fullscreen";
|
dpModeSetting = "fullscreen";
|
||||||
|
dpiSetting = "175";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
QString itemTextLower = itemText.toLower();
|
QString itemTextLower = itemText.toLower();
|
||||||
|
@ -105,8 +115,6 @@ void koboxAppsDialog::on_launchBtn_clicked()
|
||||||
string_writeconfig("/external_root/tmp/X_dpi", dpiSetting);
|
string_writeconfig("/external_root/tmp/X_dpi", dpiSetting);
|
||||||
|
|
||||||
// Wheeee!
|
// Wheeee!
|
||||||
string_writeconfig("/external_root/opt/ibxd", "x_gui_start");
|
string_writeconfig("/opt/ibxd", "x_start_gui\n");
|
||||||
|
|
||||||
qApp->quit();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue