You are Here:
Linux Lite 4.4 Final has been released. See the Release Announcements section for more information.



I need help to block wallpaper change

Author (Read 336 times)

0 Members and 2 Guests are viewing this topic.

I need help to block wallpaper change
« on: January 29, 2019, 06:55:18 AM »
 

leillo1975

  • New to Forums
  • *
  • 17
    Posts
  • Country: 00
  • Reputation: 2
  • Linux Lite Member
    • O BLOG DE LEO

  • Linux Lite: 4.2 64bit

  • CPU: Intel i5 2400

  • MEMORY: 6Gb

  • VIDEO CARD: Nvidia GeForce GT-740
Hello again
I work in a educational institution and we have a classroom with 16 PC's with Linux Lite 4.2 installed. I have a problem, the students are changing the institution official wallpaper constantly, even with inappropriate photos.

I would like to block the possibility of change the wallpaper, or a solution that makes this official wallpaper sets when a new sessión starts (with a script)
¿Can you help me?
 


Re: I need help to block wallpaper change
« Reply #1 on: June 19, 2019, 01:36:40 PM »
 

Angelos Kouniaris

  • New to Forums
  • *
  • 3
    Posts
  • Reputation: 0
Hi, I have the exact same problem. I need to either block changing the wallpaper OR to make a script automatically changing it back upon login.

Unfotunatelly i do not have the knowledge to do so.

Have anyone got any suggestions?
 

Re: I need help to block wallpaper change
« Reply #2 on: June 19, 2019, 02:57:44 PM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 3185
    Posts
  • Country: 00
  • Reputation: 299

  • Linux Lite: 3.2 64bit
Hello leillo1975, and Angelos Kouniaris,

suggestion - this link explains how to set a wallpaper each day.

https://askubuntu.com/questions/835853/how-can-i-get-one-wallpaper-for-each-day-of-the-week/835864#835864

By editing the above script you can choose the default Linux Lite wallpaper as the wallpaper for every day, and to check it is the wallpaper on specific time durations after startup using cron, when checked if Linux Lite wallpaper is not the current wallpaper it will change it back** to this wallpaper.
I do not know how to change it for your needs for XFCE desktop, but someone will know on the forum how to change it.

Edit - an easy way of doing that code edits may be a small hack like -
IF when checked it is not todays wallpaper by its filename (as it has been changed by user) THEN jump to tomorrows wallpaper (as it is the same wallpaper as todays should have been).
Rather than resetting the wallpaper it is looping through the daily wallpapers after each change by user it continues next jump in the loop based upon the cron times for checking, just as in the script of link above does for each daily wallpaper.
Cron it is changed by setting daily time instead to for example 30 minutes or 60 minutes between checks, to suit your needs for the checking of the wallpaper, and its resetting to the Linux Lite wallpaper.
This makes it easier to change and less coding needing to be done as only adapting/hacking the existing code on link not having to rewrite big parts of the code.

** the hackery is - the wallpaper is changed "back" to the default Linux Lite by in reality changing the wallpaper "forward" coz Linux Lite is always moving forward, is forward thinking.
Last Edit: June 19, 2019, 03:46:52 PM by bitsnpcs
 

Re: I need help to block wallpaper change
« Reply #3 on: June 19, 2019, 03:50:14 PM »
 

torreydale

  • PayPal Supporter
  • Platinum Level Poster
  • *****
  • 1473
    Posts
  • Country: us
  • Reputation: 239
  • * Forum Moderator *

  • Linux Lite: 4.4 64bit

  • CPU: Intel Core i5-5300U (-HT-MCP-)

  • MEMORY: 8Gb

  • VIDEO CARD: Intel Broadwell-U Integrated Graphics
Want to thank me?  Click my [Thank] link.
 


Tags: wallpaper help 
 


Linux Lite 4.4 Final has been released. See the Release Announcements section for more information.