mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 02:42:50 +00:00
kinfocenter: return true if ReadPipe() successedes in get_dri_device()
on a side note - get_dri_device() is broken on Linux and FreeBSD due to changes in Linux and FreeBSD, not tested on DragonFly BSD Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
e6303d29f3
commit
742ab11442
1 changed files with 10 additions and 9 deletions
|
@ -231,6 +231,7 @@ static bool get_dri_device() {
|
|||
QStringList pci_info;
|
||||
if (ReadPipe("sysctl -n hw.dri.0.name",pci_info)) {
|
||||
dri_info.module = pci_info[0].mid(0, pci_info[0].indexOf(0x20));
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue