kde-plasma
This commit is contained in:
@@ -68,14 +68,14 @@ index d237337..3971945 100644
|
||||
#include "osdepinfo.h"
|
||||
|
||||
#include <sys/utsname.h>
|
||||
+#include <KConfig>
|
||||
+#include <KConfigGroup>
|
||||
+#include <kconfig>
|
||||
+#include <kconfigGroup>
|
||||
+#include <QString>
|
||||
+
|
||||
+QString getDistro()
|
||||
+{
|
||||
+ KConfig osRelease( "/etc/os-release", KConfig::SimpleConfig );
|
||||
+ KConfigGroup osR( &osRelease, "" );
|
||||
+ kconfig osRelease( "/etc/os-release", kconfig::SimpleConfig );
|
||||
+ kconfigGroup osR( &osRelease, "" );
|
||||
+ QString pretty = osR.readEntry("PRETTY_NAME");
|
||||
+ pretty.remove('"');
|
||||
+ return(pretty);
|
||||
|
||||
Reference in New Issue
Block a user