Menu

No corporate wallpaper and an error

Anonymous
2013-12-17
2014-02-07
  • Anonymous

    Anonymous - 2013-12-17

    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.

     
  • BGINFO for X and for Windows!

    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.

     
  • Ricardo Maximino

    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!

     
  • BGINFO for X and for Windows!

    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'"

     
  • Ricardo Maximino

    Without that sed it happens nothing. There is no information displayed

     
  • BGINFO for X and for Windows!

    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.

     
  • Ricardo Maximino

    Nope, it doesnt.

    No information is showed on the Windows Wallpaper.

     
  • Ricardo Maximino

    Bash.exe crashes when i Ctrl-C

     
  • BGINFO for X and for Windows!

    Does it work when corporatewallpaper="YES"?

    Thanks.

     
  • Ricardo Maximino

    Yes, it works.

    But when Ctrl-c it doesnt go back to the original Wallpaper

     
  • Ricardo Maximino

    and Bash.exe doenst crashes.

     
  • Ricardo Maximino

    got it. the * where missing from */g

     
  • BGINFO for X and for Windows!

    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'"

     
  • chockymonster

    chockymonster - 2014-02-04

    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.

     
  • chockymonster

    chockymonster - 2014-02-07

    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.

     
  • chockymonster

    chockymonster - 2014-02-07

    formatting is removing the asterisks from in front of both of the //g

    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'"
    
     
  • BGINFO for X and for Windows!

    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.

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.