Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

I need a system call to change the desktop background

Graphical Environments, Managers, Multimedia & Desktop questions.
Message
Author
reinob
Posts: 1189
Joined: 2014-06-30 11:42
Has thanked: 97 times
Been thanked: 47 times

Re: I need a system call to change the desktop background

#21 Post by reinob »

FWIW I think OP is either trying to solve some sort of homework ("use a system call to ..."), which would point to a really bad teacher.

Or they think "system call" means using the C system("call").

If the latter, then of course the solutions given above using feh or gsettings (if applicable, i.e. in gnome or such) would do the trick nicely.

trinidad
Posts: 290
Joined: 2016-08-04 14:58
Been thanked: 14 times

Re: I need a system call to change the desktop background

#22 Post by trinidad »

gsettings set org.mate.background picture-filename /ddisk/f/scans/UpTrain.png
You are on the right track here. Don't need a root terminal for this, and you have to make the script executable. If you are tying to an event like opening and closing another application you could set the script in a systemd service and start and stop it, with the application open and close actions, or add the script to application open and close actions. No one can accurately help you with this until you define the event. What is the event? Unfortunately I don't use MATE and you seem over your head here. Sorry for any misunderstanding but gsettings utilizing the onboard wallpaper changer in an executable script is the way to go.

TC
You can't believe your eyes if your imagination is out of focus.

Post Reply