Permalink
Browse files

Fix detection of the NVIDIA driver during installation, /etc/X11/xorg…

….conf no longer always exists
  • Loading branch information...
1 parent 459a4a5 commit 767280fe3d8cf2c176bed1a942729d90a68a1064 @kmoore134 kmoore134 committed Nov 12, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 src-qt4/pc-installgui/installer.cpp
@@ -583,13 +583,13 @@ void Installer::slotChangedMetaPkgSelection()
selectedPkgs << "KDE-L10N";
// Check if we are using NVIDIA driver and include it automatically
- QFile file("/etc/X11/xorg.conf");
+ QFile file("/var/log/Xorg.0.log");
if (file.open(QIODevice::ReadOnly | QIODevice::Text)) {
QTextStream in(&file);
while (!in.atEnd()) {
QString line = in.readLine();
- if ( line.indexOf("nvidia") != -1 ) {
+ if ( line.indexOf('LoadModule: "nvidia"') != -1 ) {
selectedPkgs << "NVIDIA";
break;
}

0 comments on commit 767280f

Please sign in to comment.