Author Topic: Auto Wallpaper Change [SOLVED]  (Read 6294 times)

Offline Toshmarple

  • Member
  • ***
  • Posts: 72
  • Karma: 2
  • New Forum User
    • View Profile
  • Peppermint version(s): P10-64 Laptop, P9-32 Netbook
Auto Wallpaper Change [SOLVED]
« on: September 19, 2015, 12:55:25 pm »
I am using my photos as wallpaper but periodically I change them manually but I am wondering if there is any way doing this automatically.  Web research suggests 'Variety' for Ubuntu but also says there are problems with 'light' window managers so I am reluctant try it without enquiring of the forum.  Ok Guys, any comments?

BFN Toshmarple
« Last Edit: October 02, 2015, 06:25:18 am by Toshmarple »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Toshmarple

  • Member
  • ***
  • Posts: 72
  • Karma: 2
  • New Forum User
    • View Profile
  • Peppermint version(s): P10-64 Laptop, P9-32 Netbook
Re: Auto Wallpaper Change
« Reply #2 on: September 22, 2015, 10:10:37 am »
I have tried 'Wallpaper-Changer' and unfortunately it does not work.  In terminal I get following message every time:

"(gedit:2661): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files"

Also on reboot screensaver reverts to P6 default and option to set any photo as wallpaper no longer works, I have to put a copy in wallpaper directory and select it there.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Auto Wallpaper Change
« Reply #3 on: September 22, 2015, 01:03:26 pm »
That gedit warning is quite normal and nothing to worry about .. it also has nothing to do with the wallpaper changer

I can assure you both those methods work in Peppermint 6....

Which method did you try ?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Toshmarple

  • Member
  • ***
  • Posts: 72
  • Karma: 2
  • New Forum User
    • View Profile
  • Peppermint version(s): P10-64 Laptop, P9-32 Netbook
Re: Auto Wallpaper Change
« Reply #4 on: September 22, 2015, 10:22:57 pm »
Both, but with that assurance I will have another go and carefully check what I have done.  Is there any conflict between the two and is the 'Wallpapers' directory ok in 'Pictures' i.e. "/home/carlos/Pictures/Wallpapers" or does it need to be in Root ?  Thanks
« Last Edit: September 23, 2015, 09:47:41 am by Toshmarple »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Auto Wallpaper Change
« Reply #5 on: September 23, 2015, 01:23:53 am »
Can you run:
Code: [Select]
gedit ~/.config/autostart/auto-wallpaper-changer.desktopand post the contents of that file

can you also post the output from:
Code: [Select]
whoami
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Toshmarple

  • Member
  • ***
  • Posts: 72
  • Karma: 2
  • New Forum User
    • View Profile
  • Peppermint version(s): P10-64 Laptop, P9-32 Netbook
Re: Auto Wallpaper Change
« Reply #6 on: September 23, 2015, 06:48:50 am »
Have tried both again without success so here is what you asked for:

carlos@carlos-Inspiron-N5110 ~ $ gedit ~/.config/autostart/auto-wallpaper-changer.desktop:

Type=Application
Name=Auto Wallpaper Changer
Comment=Change wallpaper every 30 secs
Exec=bash -c 'while true ; do gsettings set org.gnome.desktop.background picture-uri "file:///$(find /home/carlos/Pictures/Wallpapers -type f | shuf -n1)" ; sleep 30 ; done'
Terminal=false
Categories=Utility;
Icon=wallpaper

whoami:

carlos@carlos-Inspiron-N5110 ~ $ whoami
carlos
carlos@carlos-Inspiron-N5110 ~ $

Sorry to be a pain
« Last Edit: September 23, 2015, 10:59:54 am by Toshmarple »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Auto Wallpaper Change
« Reply #7 on: September 23, 2015, 07:04:16 am »
If you open a terminal and run:
Code: [Select]
bash -c 'while true ; do gsettings set org.gnome.desktop.background picture-uri "file:///$(find /home/carlos/Pictures/Wallpapers -type f | shuf -n1)" ; sleep 10 ; done'leaving the terminal open .. does your wallpaper change every 10 seconds ?

If not, please post the output from:
Code: [Select]
ls /home/carlos/Pictures/Wallpapers
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Toshmarple

  • Member
  • ***
  • Posts: 72
  • Karma: 2
  • New Forum User
    • View Profile
  • Peppermint version(s): P10-64 Laptop, P9-32 Netbook
Re: Auto Wallpaper Change
« Reply #8 on: September 23, 2015, 07:19:29 am »
Unfortunately no but when I tried to paste into the terminal the second instruction nothing happened!  I then tried to close it as a pre-curser to opening a new terminal it asked me if I was sure I wanted to close it as processes were running.  I said yes and opened a new window, pasted in your instruction and this was the output:

Code: [Select]
carlos@carlos-Inspiron-N5110 ~ $ ls /home/carlos/Pictures/Wallpapers
DSCF0162.v01.JPG  Our Wedding.v02.jpg  SnN.v02.jpg
carlos@carlos-Inspiron-N5110 ~ $

This is correct, there are just the three images in the directory at present.

« Last Edit: September 23, 2015, 08:07:41 am by AndyInMokum »

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4889
  • Karma: 1058
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 10 (64-bit)
Re: Auto Wallpaper Change
« Reply #9 on: September 23, 2015, 08:08:45 am »
Hi Toshmarple, how's it going?  Could you please remember to encapsulate terminal outputs with the, # Insert Code function.  It preserves the original format of the output.  This function is found above the,  :-[ Embarrassed emoticon in the forum editor.  I've done this for you this time - many thanks  ;).
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4889
  • Karma: 1058
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 10 (64-bit)
Re: Auto Wallpaper Change
« Reply #10 on: September 23, 2015, 08:13:36 am »
Hi Toshmarple, here's a tip you may not be aware of.  Remember that Linux is case sensitive.  To reduce the possibility of typographical errors, please click on the Code: [Select] function that's located to the far left, above the line of instructions.  Click on the centre mouse button/wheel while the mouse cursor is in the terminal window to paste the contents.  You can also copy from the terminal with the following keystrokes: Ctrl+Shift+c and paste into the terminal with these keystrokes: Ctrl+Shift+v  ;).
« Last Edit: September 23, 2015, 08:49:14 am by AndyInMokum »
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Auto Wallpaper Change
« Reply #11 on: September 23, 2015, 09:46:44 am »
is this peppermint SIX ?

Have you done anything that has stopped nemo controlling the desktop ?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Toshmarple

  • Member
  • ***
  • Posts: 72
  • Karma: 2
  • New Forum User
    • View Profile
  • Peppermint version(s): P10-64 Laptop, P9-32 Netbook
Re: Auto Wallpaper Change
« Reply #12 on: September 23, 2015, 10:05:40 am »
I did install 'Cairo-Dock' but found that slowed things up so I un-installed it but suspect I need a clean install to get back to square 1.   Although I have tried hard to follow instructions things are not going well as you know so it may be better to do the 'clean install' just mentioned, I won't lose any data but will lose customisation as I only have 'Root', 'Home' and 'Swap ' partitions.  I also feel very guilty about using up the teams' time - I now find I'm not even following forum procedures so it maybe I should quit now and go it alone.  I am truly sorry guys but it was not intentional.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Auto Wallpaper Change
« Reply #13 on: September 23, 2015, 03:51:58 pm »
It's up to you if you want to fresh install, but I can assure you nobody here thinks you're wasting our time this is precisely why we're here, nor is anyone "having a go" (or upset) over forum procedure.....

All's good here Toshmarple :)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4889
  • Karma: 1058
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 10 (64-bit)
Re: Auto Wallpaper Change
« Reply #14 on: September 23, 2015, 04:25:26 pm »
Hi Toshmarple, when I send out advisories, it's only to help you guys out and maintain continuity in the forum.   You're not expected to know how everything works.  So you're most certainly not wasting our time.  In fact, coming to the forum with new issues is helping the whole community out.  When a solution is found, it's added to our knowledge base and you've been a part of it.  That's a very cool thing to do  ;D.  There's absolutely no need to go it alone, we're here to help.  This is what the community is all about; working as a team  ;).
« Last Edit: September 23, 2015, 04:54:20 pm by AndyInMokum »
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.