Comments (6)
Maybe adding sudo
/doas
is the right solution, but is it also worth considering using python's glob
module in a for loop to search for a library in LD_LIBRARY_PATH? We'd have to be sure to add /lib
and /usr/lib
to the for-loop, because I don't know if LD_LIBRARY_PATH is necessarily set.
from logoslinuxinstaller.
Maybe adding
sudo
/doas
is the right solution, but is it also worth considering using python'sglob
module in a for loop to search for a library in LD_LIBRARY_PATH? We'd have to be sure to add/lib
and/usr/lib
to the for-loop, because I don't know if LD_LIBRARY_PATH is necessarily set.
That could help us to be further OS independent, such as for BSD and macOS.
from logoslinuxinstaller.
I found an even better (and much faster) solution using pathlib.Path.rglob
. glob.glob
was taking forever. Here's a one-line sample of the proof-of-concept, just looking in /usr/lib
:
$ python3 -c 'from pathlib import Path; print([p for p in Path("/usr/lib").rglob("libfuse*")][0])'
/usr/lib/x86_64-linux-gnu/libfuse.so.2.9.9
from logoslinuxinstaller.
The above commit 7aa1671 [still] works on my ubuntu system, but it needs tested on at least debian before I'm satisfied that it solves the problem. Instead of elevating privileges for the ldconfig
command, it searches the lib folders directly ($LD_LIBRARY_PATH
, /usr/lib
, /lib
). We would maybe need to add more folder paths for macOS, whose file structure I'm not familiar with.
from logoslinuxinstaller.
a test build with this change is now available at https://github.com/FaithLife-Community/test-builds/releases/download/v4.0.0alpha-issue10-20231229/LogosLinuxInstaller
from logoslinuxinstaller.
Telegram/Matrix user "godfollower4ever" confirmed this fix in a group conversation thread
from logoslinuxinstaller.
Related Issues (20)
- Potential GUI Improvements HOT 1
- Updating Non-AppImage Wine Binaries
- Beautify the GUI
- Installer should exit if connection times out
- Status Messages
- Installer Hangs While Checking for an Existing Install HOT 4
- Installer Fails to Create the Log File on Initial Run HOT 1
- Installer Fails to Create Shortcut Due to Missing Verbum Icon
- Running the install action crashes kde on kubuntu HOT 4
- GUI doesn't update "Install" button to "Run" after installation.
- Logos Itself Throws Error When Updating HOT 7
- Arch on python version < 3.12, causing install script to error HOT 3
- SteamOS: `pacman` Hits Locked Database HOT 1
- Allow Setting a Target Install Directory
- Slow Non-Responsive UI HOT 6
- Add Switch To Testing Branch
- ToolTip Incorrect in GUI on an Uninitiated Install
- Incorporate unit testing HOT 1
- Endless loop when glob() encounters a symlink loop HOT 3
- Self-update might result in broken binary
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from logoslinuxinstaller.