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

Script fails, can't locate files #141

Open
nsapp opened this issue Feb 7, 2019 · 10 comments
Open

Script fails, can't locate files #141

nsapp opened this issue Feb 7, 2019 · 10 comments
Labels

Comments

@nsapp
Copy link

nsapp commented Feb 7, 2019

When trying to run the script, I get

convert: unable to open image '/usr/share/i3lock-fancy/icons/lock.png': No such file or directory @ error/blob.c/OpenBlob/3485.
convert: no images defined `/tmp/tmp.OUclQpvXEQ.png' @ error/convert.c/ConvertImageCommand/3300.

I'm using Arch Linux, and installed using the PKGBUILD file included when cloning from the AUR.

@Enteee
Copy link

Enteee commented Aug 31, 2019

I am investigating this and it looks like this happens because something creates an empty output image file (/tmp/tmp.OUclQpvXEQ.png) before scrot is invoked. Scrot then won't write (unless -o is given) and therefore convert complains about it not being able to do something on an empty file.

@Enteee
Copy link

Enteee commented Aug 31, 2019

ah wait got it, mktemp obviously creates the empty file. So the fix for this should be as simple as adding -o when we call scrot.

Enteee referenced this issue in resurrecting-open-source-projects/scrot Aug 31, 2019
Generate a new one: file_000.ext, file_0001.ext

Update manpage.
@Enteee
Copy link

Enteee commented Aug 31, 2019

The linked commit resurrecting-open-source-projects/scrot@489e322 caused this to happen.

@Enteee
Copy link

Enteee commented Aug 31, 2019

Ah hang on, i just realized that this error might not be related. I am so sorry, i was facing a different issue which i fixed with the linked pr in nixpkgs. You probably see this issue because something deleted /usr/share/i3lock-fancy/icons/lock.png on your system.

so what does file /usr/share/i3lock-fancy/icons/lock.png print ?

@JimmyDurandWesolowski
Copy link

@Enteee : I guess the problem is the same is the one I faced. If PREFIX is different that /usr, this will happen. I created a hacky solution to have it working, but I can create a cleaner one if needed be:
JimmyDurandWesolowski@bf78dfb

@VladislavNekto
Copy link

I have problem like this.
When i try lock screen, i see this:
import: WriteBlob Failed /tmp/tmp.CcnSlUmZA4.png' @ error/png.c/MagickPNGErrorHandler/1715.
Also, privileges is 777 on /tmp, because i can free create a file by myself, but even root can't run i3lock-fancy normally (Although this is a bad idea).
I use arch linux too.

Hm... I monitoring /tmp (watch ls /tmp) and i see, what file really created, but after one short moment just disappears

I think, i don't need create new issue?
Thank you!

@JimmyDurandWesolowski
Copy link

@VladislavNekto You error seems similar, but the root cause appears to be different.
Can you try to create an empty file, and copy a file in /tmp, for example?

touch /tmp/test
cp ~/.bashrc /tmp

@VladislavNekto
Copy link

@JimmyDurandWesolowski,
No problems.

@VladislavNekto
Copy link

Oh, okay. After new update it's work perfect. Thank anyway.

@AladW
Copy link
Collaborator

AladW commented Jun 25, 2020

@Enteee : I guess the problem is the same is the one I faced. If PREFIX is different that /usr, this will happen. I created a hacky solution to have it working, but I can create a cleaner one if needed be:
JimmyDurandWesolowski@bf78dfb

i3lock-fancy should not hardcode the paths, but have them replaced by m4 in the Makefile.

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

No branches or pull requests

5 participants