The configuration file, which is located at the hidden folder ~/.weather-wallpaper

Asked by Tim

I have no configuration file at hidden folder ~/.weather-wallpaper. How can I add that config. file? What do I need to do? Installed using deb file. Kubuntu 7.04

Question information

Language:
English Edit question
Status:
Solved
For:
Weather wallpaper Edit question
Assignee:
No assignee Edit question
Solved by:
Tim
Solved:
Last query:
Last reply:
Revision history for this message
Maxxer (lorenzo-milesi) said :
#1

Just run it. The program will create one for you, which you can edit later.

I've just installed on ubuntu. At first run (from terminal) it gave some errors. Closing it, editing file, re-running resolved everything!

Have fun!
maxxer

Revision history for this message
Raúl González Duque (zootropo) said :
#2

True. I didn't think it could be confusing for the users. I'll have to write the file during the installation of the package....

Revision history for this message
Tim (linuxwizard) said :
#3

If I don't need that configuration file to first use it than I have another problem. I can not get it to run from terminal or kmenu. Not getting any errors. Maybe should try to uninstall it and than reinstall will help.

Revision history for this message
Raúl González Duque (zootropo) said :
#4

What message does it show on the console Tim?

Revision history for this message
Tim (linuxwizard) said :
#5

weather-wallpaper
Traceback (most recent call last):
  File "/usr/bin/weather-wallpaper", line 25, in <module>
    import gconf
ImportError: No module named gconf

I wasn't getting anything now it shows this.

Revision history for this message
Raúl González Duque (zootropo) said :
#6

Ok. I suppose you are using KDE? It doesn't works with KDE yet, but it will in the next version.
If you want you can modify the code in the meantime, it's as easy as substituting the gconf stuff with something like this:

            # If the user is running Gnome
            if os.popen( "ps --user " + os.environ.get( "USER" ) + "| grep gnome-panel").readline():
                client = gconf.client_get_default()
                client.set_string("/desktop/gnome/background/picture_filename", output_img)
                client.set_string("/desktop/gnome/background/picture_options", "centered")

                client.set_string("/desktop/gnome/background/color_shading_type", "vertical-gradient")
                client.set_string("/desktop/gnome/background/primary_color", foreground)
                client.set_string("/desktop/gnome/background/secondary_color", background)
            # If the user is running KDE
            elif os.popen( "ps --user " + os.environ.get( "USER" ) + "| grep kdesktop" ).readline():
                cmd = "dcop kdesktop KBackgroundIface setWallpaper \"%s\" 1 " % (output_img)
                os.popen(cmd)
                cmd = "dcop kdesktop KBackgroundIface setColor \"%s\" false" % (background)
                os.popen(cmd)
                cmd = "dcop kdesktop KBackgroundIface setColor \"%s\" true" % (foreground)

Revision history for this message
Tim (linuxwizard) said :
#7

Thank You So Much For Your Help Raul
Did not realize this was just for Gnome. When I was on the Weather-Wallpaper website [Quote: If you use Debian, Ubuntu, or another distro which uses deb packages] I took this as KDE or Gnome. I will wait for next version for KDE but I also use Ubuntu so I will install it on that and give it a try.