Giter VIP home page Giter VIP logo

Comments (4)

n8marti avatar n8marti commented on July 20, 2024

some breadcrumbs to follow:

  • winehq packages for ubuntu install wine to /opt/wine-{$branch}/
  • The current appimage for 8.19 does the same, which you can see if you:
    • mount the image with wine-${blahblahblah}.appimage --appimage-mount
    • note the mount path in the terminal output
    • open another terminal to this path and do ls ${mount_path}/opt/, and you will see either wine-staging, wine-devel, or wine-stable in that folder

AppImages also have a command to extract certain files. Maybe this could be used to sniff out the wine branch used without having to mount the AppImage. For example, I've found that it can be discovered inside mscoree.dll:

$ grep -aEo 'wine-[a-z]+' /opt/wine-stable/lib/wine/i386-windows/mscoree.dll 
wine-stable
# or, without knowing the full path ahead of time (less useful if you have multiple wine versions installed inside the search folder:
$ find /opt -name mscoree.dll -exec grep -aEo 'wine-[a-z]+' {} \; 
wine-stable
wine-stable
# for an AppImage this seems to work (if you don't trust the filename):
$ grep -aEo 'wine-[a-z]+' wine-devel_8.19-x86_64.AppImage
wine-devel

from logoslinuxinstaller.

thw26 avatar thw26 commented on July 20, 2024

Searching a DLL might work, as that should be available on all systems if we search the right directory. We would need to pair the wine binary candidate with the dir containing its DLLs and then we should be able to search whatever we want. It might even be faster than waiting on a wine --version check since we don't need to wait for the heavy wine bin to load.

We might then be able to simplify the whole thing even, as then we could determine the binary's branch with a simple sed or awk.

from logoslinuxinstaller.

n8marti avatar n8marti commented on July 20, 2024

from logoslinuxinstaller.

n8marti avatar n8marti commented on July 20, 2024

I've started working on this in issue32 branch. It detects but doesn't yet handle AppImages, though.

from logoslinuxinstaller.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.