-   Linux - Software (
-   -   pcmanfm --set-wallpaper does nothing (

DetroitLibertyPenguin 05-17-2011 01:30 PM

pcmanfm --set-wallpaper does nothing
In GNOME one can write an XML document telling the system when to change between various files to automatically change the desktop wallpaper, and then set that XML document as the wallpaper.

I have three I like to switch between, containing the schedules and playoff brackets of my favorite sports teams.

I've been using LXDE far more than I've been using GNOME these days, but LXDE won't let me set the XML as the wallpaper like GNOME does.

So after searching around a bit I thought I'd create a cronjob that would change the wallpaper every 20 minutes.

So I set up this

# m h  dom mon dow  command
5 *  * * * pcmanfm --set-wallpaper=/home/jim/Pictures/tigers.jpg
25 * * * * pcmanfm --set-wallpaper=/home/jim/Pictures/nhl.jpg
45 * * * * pcmanfm --set-wallpaper=/home/jim/Pictures/mudhens.jpg

but it didn't do what I thought it would in changing my wallpaper automatically.

Since I had never used cronjobs before I thought I was doing something wrong in how I had it set up. Various tries to no avail.

But then I have the real problem none of the various I've treid of simply running pcmanfm --set-wallpaper or pcmanfm -w (the --help says they do the same thing) actually do anything. I've tried both with and without the = (I wasn't sure how to interperet the --help on that).

Any help you can provide would help

jothan sans cheer 05-18-2011 03:14 PM

Would xsetbg set the background image? Its an alias for xloadimage with certain parameters.


DetroitLibertyPenguin 05-20-2011 01:46 PM

I'm uncertain if xsetbg would work, when I tried to run it simply says bash: xsetbg: command not found

However, the problem with pcmanfm --set-walpaper was a user error, I wasn't entering the correct /full/path/to.jpg

If I use the correct path it works. Before when I ran the command with the incorrect path it just went to a new prompt when I hit enter. I think i'm going to file a bug in LXDE because I feel it should have given me some sort of error like "/file/to/path/incorrect.jpg" file does not exist.

I'll have to wait a few and see if the cronjob works to do the same my XML does in gnome

All times are GMT -5. The time now is 01:47 PM.