Reply
Thread Tools
Berserk's Avatar
Posts: 199 | Thanked: 156 times | Joined on May 2010 @ Holland
#1
I'm currently developing "Image Set Maker" as my first C++/Qt application (for N900), which allows users to make .desktop files easily (for wallpapers), in stead of having to type everything..

I'd like to know 2 things about this:
- Do all the pictures have to be in /home/user/MyDocs/.images/ ? Or is any folder suitable?
Since .desktop files feature full paths, I think they could go anywhere, but I'm not sure. In other words, is it 'legal' to use one image from DCIM, one from .documents and two from .images, for example?

- Does the .desktop file always need to be saved in /home/user/MyDocs/.images/ ? Or is any folder suitable?
I reckon .images is the default place where the N900 looks..

Many thanks for any help you can give
 
Posts: 356 | Thanked: 172 times | Joined on Jan 2010 @ Canada
#2
Originally Posted by Berserk View Post
I'm currently developing "Image Set Maker" as my first C++/Qt application (for N900), which allows users to make .desktop files easily (for wallpapers), in stead of having to type everything..
Sounds great! Have you had a look at Wallpaper Creator? It does this to some extent, although seems to be limited to chopping up panoramas and doesn't allow the user to specify where they want the images placed.. but you might find it useful to contact the developer of that app for specific help with this.

I'd like to know 2 things about this:
- Do all the pictures have to be in /home/user/MyDocs/.images/ ? Or is any folder suitable?
Since .desktop files feature full paths, I think they could go anywhere, but I'm not sure. In other words, is it 'legal' to use one image from DCIM, one from .documents and two from .images, for example?
I've never tried pulling images from multiple directories, but I don't see why it wouldn't work -- in my case, I keep all my desktop images in /home/user/MyDocs/.images/Desktops/

I point the .desktop files to that directory and it works just fine, so I don't see why the path to each image you specify couldn't be different.

- Does the .desktop file always need to be saved in /home/user/MyDocs/.images/ ? Or is any folder suitable?
I reckon .images is the default place where the N900 looks..

Many thanks for any help you can give
This is something I've been wondering as well, but I've never bothered to experiment..

Anyway, good luck with this! Having a bit of control and automation over the creation of image sets will definitely be welcome
 

The Following User Says Thank You to Bingley Joe For This Useful Post:
Berserk's Avatar
Posts: 199 | Thanked: 156 times | Joined on May 2010 @ Holland
#3
Thanks Bingley Joe

So someone beat me hahah I wasn't aware that an app like this already existed, but in any case it's great training for myself.

I oughtta contact him indeed, see if we can work something out

I've decided to keep the image paths variable (selectable with file-dialog), and the .desktop file wil always be saved in /home/user/MyDocs/.images/, to avoid possible problems.


EDIT: the current functionality is (if your're interested)
- User types image-set name.
- User selects 4 images, then path+filename and preview are shown for all of them.
- Save button only works when everything is filled in.
- Saves <name>.desktop to Images folder by pressing the save button.
- First thing on my to-do list is resolution check, has to be 800 x 480, of course


Back to the lab again!

Last edited by Berserk; 2010-08-13 at 16:09.
 
Posts: 356 | Thanked: 172 times | Joined on Jan 2010 @ Canada
#4
Originally Posted by Berserk View Post
Thanks Bingley Joe

So someone beat me hahah I wasn't aware that an app like this already existed, but in any case it's great training for myself.

I oughtta contact him indeed, see if we can work something out

I've decided to keep the image paths variable (selectable with file-dialog), and the .desktop file wil always be saved in /home/user/MyDocs/.images/, to avoid possible problems.


EDIT: the current functionality is (if your're interested)
- User types image-set name.
- User selects 4 images, then path+filename and preview are shown for all of them.
- Save button only works when everything is filled in.
- Saves <name>.desktop to Images folder by pressing the save button.
- First thing on my to-do list is resolution check, has to be 800 x 480, of course


Back to the lab again!
Sounds great, and as I mentioned earlier, having a bit of control over the parameters will be welcome.. in fact, a combination of Wallpaper Creator and your app would be the best of both worlds, when you think about it
 

The Following User Says Thank You to Bingley Joe For This Useful Post:
Berserk's Avatar
Posts: 199 | Thanked: 156 times | Joined on May 2010 @ Holland
#5
Originally Posted by Bingley Joe View Post
Sounds great, and as I mentioned earlier, having a bit of control over the parameters will be welcome.. in fact, a combination of Wallpaper Creator and your app would be the best of both worlds, when you think about it
Yes, that seems golden to me, too first I'll finish my own, then I'll contact the creator of Wallpaper Creator.

I think I'll suggest to make a main screen, with two buttons: 'Slice 3200x480 image' and 'Open 4 800x480 images', which will open the corresponding functionality. I just hope he made it in C++ :P


Could you be more specific about the parameters?
Apart from the Name and X-Files (Mulder and Scully on Maemo!!) there aren't many options I think?

Code:
[Desktop Entry]
Type=Background Image
Name=Setname
Hidden=True

X-File1=/home/user/MyDocs/.images/file1.png
X-File2=/home/user/MyDocs/.images/file2.png
X-File3=/home/user/MyDocs/.images/file3.png
X-File4=/home/user/MyDocs/.images/file4.png

X-Order=01
I'm not sure how X-Order works, does it it start with X-File1 in the above example?
I also don't know about Hidden, the file '.name.desktop' is hidden, 'name.desktop' isn't (notice the period). How does Hidden work in this?

Thanks for your input!
 
Posts: 356 | Thanked: 172 times | Joined on Jan 2010 @ Canada
#6
TBH, I haven't played with the 'hidden' or X-order variables, so I'm afraid I can't weigh in on how any of that works. I know I've seen X-order specified as both "01" and "1" though with the same results (first file on desktop 1, second on desktop 2, etc.)

One thing that occurs to me though is that you don't necessisarily have to use 4 images -- I've got an image set that I built using a grid pattern (helpful for aligning desktop items) which simply specifies the same image 4 times. It might be nice to be able to do something like that in your app.
 

The Following User Says Thank You to Bingley Joe For This Useful Post:
Berserk's Avatar
Posts: 199 | Thanked: 156 times | Joined on May 2010 @ Holland
#7
Ok thank you, I will look into it
 
Reply


 
Forum Jump


All times are GMT. The time now is 07:59.