The only time it won't work is if the user has selected a desktop from windows\web\wallpapers. Even an admin user has no rights to that folder unless ownership is taken and permissions changed.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, when i change Force corporate wallpaper to "NO" I get an error when reloading the scripts. The error i get is:
sed: -e expression #2, char 3: unterminated 's' command
Because it is not retrieving the current wallpaper, the corporate wallpaper is set. How can I solve this problem?
I use this with
Windows 7 professional
a jpeg image corporate wallpaper
removed complete installation and started over, still no success.
Yes, your are right. Next version will solve this. Meanwhile, you can edit IMMODE.CONF and search for:
WINDOWS_GET -> at the end of the line, remove the last sed.
Thanks.
Hey, i also get this error.
I´ve # the last sed but i still get the same error
WINDOWS_GET="reg QUERY \"HKEY_CURRENT_USER\Control Panel\Desktop\" //v Wallpaper | tail -n 2 | cut -d 'Z' -f 2- | sed -e 's/^\ //g' -e #sed 's/^\t\ //g'" #Note that cut -d 'Z' cuts REG_SZ, and sed remove ALL the LEADING SPACES and TABS!
Hello,
this is the right sentence:
WINDOWS_GET="reg QUERY \"HKEY_CURRENT_USER\Control Panel\Desktop\" //v Wallpaper | tail -n 2 | cut -d 'Z' -f 2- | sed -e 's/^\ //g' -e 's/^\t\ //g'"
Without that sed it happens nothing. There is no information displayed
Probably there is something wrong in the registry. Try this:
1- Change your wallpaper as usual: right click on the desktop -> change wallpaper ...
2- Start BGINFO4X.
Tell me if it works.
Nope, it doesnt.
No information is showed on the Windows Wallpaper.
Bash.exe crashes when i Ctrl-C
Does it work when corporatewallpaper="YES"?
Thanks.
Yes, it works.
But when Ctrl-c it doesnt go back to the original Wallpaper
and Bash.exe doenst crashes.
got it. the * where missing from */g
Yes, this is the right sentence:
WINDOWS_GET="reg QUERY \"HKEY_CURRENT_USER\Control Panel\Desktop\" //v Wallpaper | tail -n 2 | cut -d 'Z' -f 2- | sed -e 's/^\ //g' -e 's/^\t\ //g'"
I'm also facing this issue.
I've replaced the:
WINDOWS_GET="reg QUERY \"HKEY_CURRENT_USER\Control Panel\Desktop\" //v Wallpaper | tail -n 2 | cut -d 'Z' -f 2- | sed -e 's/^\ //g' -e sed 's/^\t\ //g'"
with
WINDOWS_GET="reg QUERY \"HKEY_CURRENT_USER\Control Panel\Desktop\" //v Wallpaper | tail -n 2 | cut -d 'Z' -f 2- | sed -e 's/^\ //g' -e 's/^\t\ //g'"
but no data is written to the user's background, the only way I can get it to work is if I use the corporate wallpaper option.
Problem solved:
Checking in the bash shell, the command was working but not stripping all of the white space. (this is on windows 8) changing the command to this:
WINDOWS_GET="reg QUERY \"HKEY_CURRENT_USER\Control Panel\Desktop\" //v Wallpaper | tail -n 2 | cut -d 'Z' -f 2- | sed -e 's/^\ //g' -e 's/^[ \t] //g'"
Works!
The only time it won't work is if the user has selected a desktop from windows\web\wallpapers. Even an admin user has no rights to that folder unless ownership is taken and permissions changed.
formatting is removing the asterisks from in front of both of the //g
Hello,
Thanks for the apointments.
Next release will manage the ownership problem of (windows\web\wallpapers).
Other big changes will be done, so the sintax of WINDOWS_GET / SET will be a little different.
You would be very helpful if you can try it when the new release is upload.
Thanks.