Code Monkey home page Code Monkey logo

Comments (13)

Kron4ek avatar Kron4ek commented on May 18, 2024

Does it work if you run conty.sh directly, not by using a symlink?

from conty.

markirius avatar markirius commented on May 18, 2024

Thanks the answer, i was think on this feature *autostart in release 1.3, i assumed if would work on 1.4 release

from conty.

Kron4ek avatar Kron4ek commented on May 18, 2024

Well, this autostart feature should work on 1.4 release too and this error you get probably not related to it. So, if you run conty.sh without using a symlink, like:

./conty.sh wine some.exe

Does it give you the game error "Please install fuse2 and run the script again!"?

Also, what this command shows?

command -v fusermount

from conty.

markirius avatar markirius commented on May 18, 2024

works like a charm with ./conty.sh wine app.

from conty.

Kron4ek avatar Kron4ek commented on May 18, 2024

Hm, interesting. What about command -v fusermount, what does it show?

from conty.

markirius avatar markirius commented on May 18, 2024

returns:
/usr/bin/fusermount

from conty.

Kron4ek avatar Kron4ek commented on May 18, 2024

Something really weird is going on here, and i can't reproduce this on my end. There is only one place in the script that is realted to this message:

if command -v fusermount 1>/dev/null; then
	fmount=fusermount
else
	echo "Please install fuse2 and run the script again!"
	exit 1
fi

For some reason when you run Conty by using a symlink named "wine" it can't find "fusermount" in your PATH and gives you the error.

I don't know how this is even possible, but i'll try to figure out. You use Arch Linux, right?

from conty.

markirius avatar markirius commented on May 18, 2024

Yes, Arch Linux

from conty.

Kron4ek avatar Kron4ek commented on May 18, 2024

What if they lie in the same directory, like:

ln -s conty.sh wine
./wine app

Does this work?

from conty.

markirius avatar markirius commented on May 18, 2024

In the same directory works.

I have the habit of using symlinks on .local/bin , this caused this situation, because, the conty.sh file stays on another directory (Downloads, for example) , a have made a symlink of him and another with name wine.

Now i know what i must do to work the way i want, thanks Kron4ek

from conty.

Kron4ek avatar Kron4ek commented on May 18, 2024

Ok, thanks for the information, i was able to reproduce this. I still consider this a bug and i will try fix it.

from conty.

Kron4ek avatar Kron4ek commented on May 18, 2024

I figured out why this actually happens. This happens when a directory where your symlink lies is present in your PATH (like your .local/bin). For example:

mkdir /home/user/testdir
cd /home/user/testdir
export PATH="/home/user/testdir:${PATH}"
ln -s /home/user/conty.sh wine
./wine app

So Conty automatically executes wine, but since it's present in your PATH it executes wine from your PATH, which is actually a symlink to conty.sh, so it executes itself within itself.

If fusermount would be installed inside the Conty, then it would be an infinite recursion - it would execute ./wine ./wine ./wine ./wine (which is actually ./conty.sh ./conty.sh ./conty.sh ./conty.sh) ... infinitely, if i'm not wrong. This is a really interesting bug.

from conty.

Kron4ek avatar Kron4ek commented on May 18, 2024

Fixed in the latest release.

from conty.

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.