protocols Posted September 28, 2009 Share Posted September 28, 2009 Hello geeks !! I am stuck with a problem " Write a Script that will change the desktop background ? " Do anyone have any thing to say on this topic ! Suggestions are gladly accepted... Tuhin Link to comment https://forums.phpfreaks.com/topic/175784-change-desktop-background/ Share on other sites More sharing options...
ILMV Posted September 28, 2009 Share Posted September 28, 2009 If you define desktop as the desktop of a computer OS, then this cannot be done using PHP, for fairly obvious reasons. Can you explain a bit more, this is obviously school work, so you will need to put some effort in. Link to comment https://forums.phpfreaks.com/topic/175784-change-desktop-background/#findComment-926287 Share on other sites More sharing options...
trq Posted September 28, 2009 Share Posted September 28, 2009 Considering you didn't specify any OS or desktop environment. exec('/usr/bin/wmsetbg /path/to/image.png') Would work for X server under Linux executed locally given the correct permissions. Link to comment https://forums.phpfreaks.com/topic/175784-change-desktop-background/#findComment-926288 Share on other sites More sharing options...
protocols Posted September 28, 2009 Author Share Posted September 28, 2009 thanks to both of you for quick reply !! I am using UBUNTU 9.04 . I want to change the background of my ubuntu desktop !! Link to comment https://forums.phpfreaks.com/topic/175784-change-desktop-background/#findComment-926306 Share on other sites More sharing options...
protocols Posted September 28, 2009 Author Share Posted September 28, 2009 If you define desktop as the desktop of a computer OS, then this cannot be done using PHP, for fairly obvious reasons. Can you explain a bit more, this is obviously school work, so you will need to put some effort in. Thanks for your reply ... I have a question to ask you that what are those "obvious reasons" for which the script could not be written in php ?? Link to comment https://forums.phpfreaks.com/topic/175784-change-desktop-background/#findComment-926310 Share on other sites More sharing options...
trq Posted September 28, 2009 Share Posted September 28, 2009 If you define desktop as the desktop of a computer OS, then this cannot be done using PHP, for fairly obvious reasons. Can you explain a bit more, this is obviously school work, so you will need to put some effort in. Thanks for your reply ... I have a question to ask you that what are those "obvious reasons" for which the script could not be written in php ?? php runs server side, so if you where looking to change a clients background it would be out of the question. As for doing it on the same machine, there are better solutions around, but php could do it given the correct permissions. Link to comment https://forums.phpfreaks.com/topic/175784-change-desktop-background/#findComment-926314 Share on other sites More sharing options...
ILMV Posted September 28, 2009 Share Posted September 28, 2009 protocols I won't answer questions that are PMed to me. The answer to your question is exactly what thorpe has suggested. Link to comment https://forums.phpfreaks.com/topic/175784-change-desktop-background/#findComment-926319 Share on other sites More sharing options...
protocols Posted September 28, 2009 Author Share Posted September 28, 2009 ILMV I am extremely sorry for that.it wont happen further. "but php could do it given the correct permissions" Tell me more about the permissions ? Link to comment https://forums.phpfreaks.com/topic/175784-change-desktop-background/#findComment-926322 Share on other sites More sharing options...
Mark Baker Posted September 28, 2009 Share Posted September 28, 2009 http://lifehacker.com/400505/rotate-desktop-backgrounds-in-ubuntu Link to comment https://forums.phpfreaks.com/topic/175784-change-desktop-background/#findComment-926324 Share on other sites More sharing options...
protocols Posted September 28, 2009 Author Share Posted September 28, 2009 http://lifehacker.com/400505/rotate-desktop-backgrounds-in-ubuntu thanks for the reply...but [http://lifehacker.com/assets/resources/2008/08/changer.zip] link does not work ... Link to comment https://forums.phpfreaks.com/topic/175784-change-desktop-background/#findComment-926493 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.