I noticed that if I download .desktop files on my N900 using its web browser, the corresponding image sets are not going to be listed in the change background menu.
But if I download them on my laptop and then send them over USB or BT, everything works.
The only difference between the files that I can find is that the N900's web browser encodes the .desktop files using UTF-8 (unicode text), while the firefox on my laptop uses ASCII text. (btw, the web server sends the files over as text/html)
On linux, you can check it using the 'file' command ('file blahblah.desktop'). Also, diff between the files will show an extra character at the beginning of the N900 file.
I think we may have two bugs here: one in the N900's web browser (encoding of the downloaded files) and the other in the change background utility (will not read utf-8 encoded files - it should be able to read them, right?)
When I download the 4 images and the desktop file to my N900 (from the N900 web browser and save all 5 files to the Images folder. Should that be it, will the N900 list the image set when I click "Change Background".
For some reason, when I have the above mentioned desktop file in the images folder along with all the correct images, I can click "Change Background" but then the list that should appear doesn't! Nothing happens at all!!
If I think go into the File Manager and delete the .desktop file, it works again, but obviously doesn't list the image set, I have to set each desktop manually, which is a pain!
Am I missing something or what?
Thanks for any help in advance.
For some reason, when I have the above mentioned desktop file in the images folder along with all the correct images, I can click "Change Background" but then the list that should appear doesn't! Nothing happens at all!!.
The following comments in the bug report from Jan Arne Petersen might help:
- The image files in the .desktop file need to be absolute paths currently (without the upcoming fix).
- And they should not contain trailing spaces.
Ah thanks, I did try to edit the text to use absolute path ("/home/user/MyDocs/.images/filename.jpg") but it didn't seem to work. I'll have another play around later on. For the moment I am very happy with my new "toy"
I've tried many ways to get these desktop files working but they don't. They don't! tried creating one from scratch, using absolute paths as mentioned above, put all files in the images folder but it wont work. Any help would be great, I can't be changing each desktop separately it'll do my nut in!
FYI, I finally got this working but ONLY by connecting to a PC and manually renaming the file on the PC. Basically, the problem I was having was I'd have the following file name in the right place with absolute paths, etc but it wouldn't work.
"filename.desktop"
It seems that it should be ".filename.desktop" (notice the period at the start of the file name). Annoyingly, when I tried to rename the download from N900Wallpapers, the device wouldn't let me, saying that I couldn't name a file beginning with ".", I also received this message when trying to rename the file in File Manager.
Presumably, the file could be renamed with root access in X-Term, but I wouldn't have the first clue how to do that! So had to do it on my PC!
Presumably, the file could be renamed with root access in X-Term, but I wouldn't have the first clue how to do that! So had to do it on my PC!
Hope this helps someone else.
On your N900:
1. Ctrl-shift-x to open terminal
2. cd MyDocs
3. cd .images
4. mv filename.desktop .filename.desktop
cd means "change directory". You find yourself in the directory /home/user when you start the terminal, so you need to enter MyDocs/.images.
mv means "move". You don't rename files in unix, your move them to a new name in the same directory.