Cannot change the locked screen background...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I was able to change the background bitmap, and also the log-in background bitmap (by overwriting the defaults in /usr/share/backgrounds/releasename/default )
But never the locked screen background.

I' ve tried this script, that supposedly works, but doesn't (it was originally made for Ubuntu, which includes gksu, -Fedora doesn' t- so I replaced it with beesu...

///////////
#!/bin/bash
#
# GUI to change the Desktop, Login Screen and Lock Screen Backgrounds in Gnome
#
# Depends on zenity
#
# Authors: Sikander Hayat Khan (idea) / Krytarik (GUI)
#

zenity --title="Choose Background Image" --info --text="Choose your desired background image in the following dialog."
IMAGE=$(zenity --title="Choose Background Image" --file-selection)

if [[ `file -i "$IMAGE"` == *image* ]]; then
    SCALE=$(zenity --title="Choose Scaling Option" --height=270 --list --text="Choose a scaling option for your background image:" --radiolist --hide-column=2 --column="" --column="" --column="" FALSE wallpaper Tile FALSE zoom Zoom FALSE centered Center TRUE scaled Scale FALSE stretched Stretch FALSE spanned Span)

if [ -z "$SCALE" ]; then
    zenity --title="Info" --info --text="You didn't choose a scaling option, the default, 'Scale', will be set."
    SCALE="scaled"
fi

APPLY=$(zenity --title="Apply to what?" --height=200 --list --text="To which backgrounds shall the image be applied?" --checklist --multiple --column="" --column="" TRUE Desktop TRUE 'Login Screen' TRUE 'Lock Screen')

if [ -n "$APPLY" ]; then

    if [[ $APPLY == *Desktop* ]]; then
        gconftool-2 --type string --set /desktop/gnome/background/picture_filename "$IMAGE"
        gconftool-2 --type string --set /desktop/gnome/background/picture_options $SCALE
    fi

    if [[ $APPLY == *Login\ Screen* ]]; then
        beesu "gconftool-2 --config-source=xml::/var/lib/gdm/.gconf --type string --set /desktop/gnome/background/picture_filename '$IMAGE'"
        beesu "gconftool-2 --config-source=xml::/var/lib/gdm/.gconf --type string --set /desktop/gnome/background/picture_options $SCALE"
        beesu "chmod 644 '$IMAGE'"
    fi

    if [[ $APPLY == *Lock\ Screen* ]]; then
        beesu "gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --type string --set /desktop/gnome/background/picture_filename '$IMAGE'"
        beesu "gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --type string --set /desktop/gnome/background/picture_options $SCALE"
        beesu "chmod 644 '$IMAGE'"
    fi

    zenity --title="Confirmation" --info --text="$IMAGE has been set as your $APPLY.\n\nNote: You need to relogin for the Lock Screen Background to be applied."

else
    zenity --title="Failed!" --error --text="You didn't choose any option, nothing has been changed."
fi

else
    zenity --title="Failed!" --error --text="You didn't choose a valid image, nothing has been changed."
fi
/////////////////////////////////////////

Any idea of what me going wrong?
The script runs fine (req zenity) yet it seems the values it tries to set with gconftool do not apply to F16?

FC

--
During times of Universal Deceit, telling the truth becomes a revolutionary act
Durante épocas de Engaño Universal, decir la verdad se convierte en un Acto Revolucionario
- George Orwell

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux