Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

requesting package fuse2 even being installed #12

Closed
markirius opened this issue Mar 31, 2021 · 13 comments
Closed

requesting package fuse2 even being installed #12

markirius opened this issue Mar 31, 2021 · 13 comments

Comments

@markirius
Copy link

on the latest release 1.4 (haven't tested previous), when i execute symbolic "wine" for directly execute an application, i receive the message:

Please install fuse2 and run the script again!

but the package are installed:

extra/fuse2 2.9.9-4 [installed]
    A library that makes it possible to implement a filesystem in a userspace program.
@Kron4ek
Copy link
Owner

Kron4ek commented Mar 31, 2021

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

@markirius
Copy link
Author

markirius commented Mar 31, 2021

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

@Kron4ek
Copy link
Owner

Kron4ek commented Mar 31, 2021

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

@markirius
Copy link
Author

markirius commented Mar 31, 2021

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

@Kron4ek
Copy link
Owner

Kron4ek commented Mar 31, 2021

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

@markirius
Copy link
Author

markirius commented Mar 31, 2021

returns:
/usr/bin/fusermount

@Kron4ek
Copy link
Owner

Kron4ek commented Mar 31, 2021

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?

@markirius
Copy link
Author

Yes, Arch Linux

@Kron4ek
Copy link
Owner

Kron4ek commented Mar 31, 2021

What if they lie in the same directory, like:

ln -s conty.sh wine
./wine app

Does this work?

@markirius
Copy link
Author

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

@Kron4ek
Copy link
Owner

Kron4ek commented Mar 31, 2021

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

@Kron4ek
Copy link
Owner

Kron4ek commented Mar 31, 2021

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.

@Kron4ek Kron4ek reopened this Mar 31, 2021
@Kron4ek Kron4ek closed this as completed in 963351b Apr 1, 2021
@Kron4ek
Copy link
Owner

Kron4ek commented Apr 1, 2021

Fixed in the latest release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants