Comments (16)
Sounds like it could be a permissions issue. If you installed with make install
then slimlock should run as root and will be able to access the file. If not, it will run as you and might not be able to open that image.
If you find out that's not the problem there's another test that would be good to run. The library that opens the image is "imlib2". Try compiling the first example ("A Simple Example") on the imlib2 page http://docs.enlightenment.org/api/imlib2/html/ to see if it is able to open the image file.
Let me know what you find out,
Joel
from slimlock.
i did make install as root, this shouldn't be any problem.
i can't compile the simple imlib2-example, maybe my imlib2 is not working correctly? it says:
imlib2_convert.c:5:3: error Imlib_Image undeclared ...
from slimlock.
Oh, sorry about that, looks like the example is missing some includes. Try adding this to the top of the file:
#include <Imlib2.h>
#include <string.h>
from slimlock.
hi, thanks for your support, my c-knowledge is not the best :P
the code is working now. and loading images is not:
image = imlib_load_image(argv[1]); // this seems to fail
if (image) // == false
not sure why. but at this point it seems to be no problem with slimlock at all. if you have any idea what could be wrong with my setup, any hints are welcome :)
cheers
don
edit: sry wrong button
from slimlock.
Hi guys, I was having actually the same exact issue as donShoe, I am also on a gentoo box. It turns out that all you need to do is add png to your use flags and then re-emerge imlib2. Hopefully this will help someone out there!
from slimlock.
@bryanbickford thanks, reemerging with useflag "png" solved the problem.
edit: closed, as this issue is imlib2-related and slimlock is working fine.
from slimlock.
@bryanbickford is there a way to make that work automatically? I don't know anything about Gentoo, btw.
from slimlock.
use flags are making gentoo pretty powerful concerning the fine-tuning of installed software. there is no automated way, afaik. you might want to add a line to your readme, like:
Requirements and Building
Gentoo users: make sure the use flags "png" and "jpg" are enabled for imlib2.
thanks for bringing up slimlock btw, it's exactly what i was looking for all the time :)
from slimlock.
@joelburget if someone create's an ebuild for slimlock and pushes it upstream to gentoo's portage, then it would be included in gentoo's package manager and anyone could just type "emerge slimlock" and it would compile from source, linking all the dependencies.
The beauty of doing an ebuild is that you can add a required use flag dependency for imlib2, then if you go to install it, it will prompt you to add the png dependency for imlib2, and it will re-install imlib2 with png support.
I am still fairly new to gentoo so i don't know all the ins and outs of ebuilds, but i am 100% sure that you can make one just like i described.
There are a few ebuild's for slimlock already out there i believe, it should be a matter of adding one or two lines to the .ebuild file.
If I get a little bit of time coming up I will look into it.
from slimlock.
There's this if you haven't seen it https://bugs.gentoo.org/show_bug.cgi?id=366405
from slimlock.
perfect, just have them add "media-libs/imlib2[png]" to the dependancies section of the ebuild.
right now they are missing the [png] section.
from slimlock.
@bryanbickford do you happen to have an account on gentoo.org? If you don't mind could you upload a new ebuild? I don't want to mess it up.
from slimlock.
i created an ebuild for slimlock-0.11 adding the use flags to the dependencies.
https://bugs.gentoo.org/show_bug.cgi?id=366405#c15
i added "png" and "jpeg" as panel.cpp seems to use jpgs as a fallback if no png can be found.
from slimlock.
@donSchoe thanks :)
from slimlock.
@joelburget hey, the ebuild got accepted and slimlock is now available in portage for gentoo. http://packages.gentoo.org/package/x11-misc/slimlock :)
from slimlock.
That's awesome! Glad to see it will be easy for Gentoo users to install.
from slimlock.
Related Issues (17)
- resume from suspend HOT 1
- cannot suspend HOT 6
- Build fails on Arch Linux due to DSOLinkChange HOT 1
- slimlock segfaults after unlock HOT 12
- Mouse pointer disappears after waking up
- Possible bypass HOT 8
- Provide Download Files HOT 4
- slimlock does not receive keyboard input when left running for a while HOT 5
- Can not lock the screen HOT 18
- Add dual screen capability HOT 1
- installs without themes HOT 1
- Not finding freetype headers properly? HOT 1
- Errors in console
- Support for fprintd HOT 2
- Syntax error when compiling Pop OS HOT 1
- slimlock make problem HOT 1
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 slimlock.