Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:munix9
gambas3
bp-463a2c2213cc64ef29ee255824663d75b3d74c1d.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bp-463a2c2213cc64ef29ee255824663d75b3d74c1d.patch of Package gambas3
From 463a2c2213cc64ef29ee255824663d75b3d74c1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= <benoit.minisini@gambas-basic.org> Date: Mon, 25 Mar 2024 00:35:04 +0100 Subject: [PATCH] System information dialog: Search for '/lib64' and '/usr/lib64' on 64 bits systems. [DEVELOPMENT ENVIRONMENT] * NEW: System information dialog: Search for '/lib64' and '/usr/lib64' on 64 bits systems. --- app/src/gambas3/.src/Welcome/FSystemInfo.class | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/app/src/gambas3/.src/Welcome/FSystemInfo.class b/app/src/gambas3/.src/Welcome/FSystemInfo.class index 32c39a885..cd821b524 100644 --- a/app/src/gambas3/.src/Welcome/FSystemInfo.class +++ b/app/src/gambas3/.src/Welcome/FSystemInfo.class @@ -110,6 +110,7 @@ Static Public Sub GetInfo(Optional bBackground As Boolean) As String[] Dim aEnv As String[] Dim sProg As String Dim sForTrans As String + Dim aDir As String[] aText.Add("[System]") sForTrans = ("System") @@ -186,23 +187,27 @@ Static Public Sub GetInfo(Optional bBackground As Boolean) As String[] If sVar Then aSearchPath = Split(sVar, ":") Else - aSearchPath = ["/usr/lib"] + aSearchPath = New String[] + If SizeOf(gb.Pointer) = SizeOf(gb.Long) Then + If Stat("/lib64", False).Type = gb.Directory Then aSearchPath.Add("/lib64") + aSearchPath.Add("/usr/lib64") + Endif + If Stat("/lib", False).Type = gb.Directory Then aSearchPath.Add("/lib") + aSearchPath.Add("/usr/lib") Endif cSearch = ["QT4": "libQtCore.so.*.*.*", "QT5": "libQt5Core.so.*.*.*", "GDK2": "libgdk-x11-2*.so.*.*.*", "GTK+2": "libgtk-x11-2*.so.*.*.*", "GDK3": "libgdk-3*.so.*.*.*", "GTK+3": "libgtk-3*.so.*.*.*", "SDL": "libSDL[2-9]-*.*.so.*.*.*", "GStreamer": "libgstreamer-*.so.*.*.*", "Poppler": "libpoppler.so.*.*.*", "Curl": "libcurl.so.*.*.*", "OpenGL": "libGL.so.*.*.*", "Cairo": "libcairo.so.*.*.*", "DBus": "libdbus-[0-9].so.*.*.*", "SQLite 3": "libsqlite3.so.*.*.*", "RSvg": "librsvg-2.so.*.*.*"] Endif - If Stat("/lib", False).Type = gb.Directory Then 'Some systems link /lib to /usr/lib - aSearchPath.Add("/lib", 0) - Endif - cFile = New Collection aText.Add("[Libraries]") sForTrans = ("Libraries") For Each sDir In aSearchPath - For Each sFile In RDir(sDir, "", gb.File, False) + Try aDir = RDir(sDir, "", gb.File, False) + If Error Then Continue + For Each sFile In aDir sFile = File.Name(sFile) For Each sPattern In cSearch If sFile Like sPattern And If Not cFile.Exist(sFile) Then -- GitLab
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor