ROX desktop utility to add & remove icons.### Beta 4

Under development: PCMCIA, wireless, etc.
Message
Author
User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#31 Post by sunburnt »

amigo; Yep... I enjoy the mental challenge that programming gives me.
I have the code written, and it about doubles the size of the apps. code!
Not including the code MU gave me and the Help section that is...
Rearranging the icons is a separate utility really, this one makes them.
Generally I don`t like desktop icons, I prefer a pristine desktop.
That`s why I really flipped the first time I saw the Xfce window manager.
Popup panels are a sooo much better way to handle icons on the desktop.

The criteria for icon placement is as follows:
Get half the screen`s width and the right most icon in it is, the "add to column".
Then the bottom icon in that column is found and a 96 pixel Y offset is added to it.
If not greater than the screen`s Y axis minus 64 (the task bar) then place the icon.
If it is greater, then move to the top of the screen and start a new column of icons.

While this isn`t perfect, it seems to be a good methodology, and nothing`s perfect!
I invite your thoughts, or anyone else`s thoughts about this coding logic.

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#32 Post by sunburnt »

sidders; I looked at locking a ROX icon and there`s no SOAP command.
I can make the app. put the "locked=true" into the file: PuppyPin, but I
don`t know if it`ll have any effect, you could try editing the file and see...

============================================
### NOTE: I noticed some bad behavior by ROX, it uses the last icon...
Whatever the last icon was, if one isn`t provided, it just uses the last one.
I had hoped that there would be a default icon that it would use...
In light of this, would it be a good idea to make the icon mandatory?

Another odd thing is it dumps junk lines into the file: PuppyPin
Maybe that`s what the file: /usr/sbin/fixPuppyPin is for... Anyone know?

sidders
Posts: 464
Joined: Wed 23 Jul 2008, 18:47
Location: Bolton, uk

#33 Post by sidders »

Dont worry too much about the lock icon. I have been experimenting with the script in the SFS, and JRB's load_sfs.pet. It works great. The script is dropped into /root/my-aplications/bin. Added IF statement to tghe load_sfs to have a look, if theres one there execute it, which in turn will execute roxDTicon.
I did map out the icons first manually, so they are precoded to load in a line at the right hand sode of the screen

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#34 Post by sunburnt »

sidders; I had thought about having roxDTicon do selectable columns.
So it would be column #N from the left or right side of the screen.
If column is full to the screen bottom, then next column to left or right..

##### Beta 4 version ready for download. Works goood !!!

Does anyone think a GUI for it is a good idea? I`m not sure it`d be useful.

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#35 Post by sunburnt »

If no one has any more bugs to report or complaints, I`ll post this as finished.
There`s more that could be done with it, but more functions may not be useful.

sidders
Posts: 464
Joined: Wed 23 Jul 2008, 18:47
Location: Bolton, uk

#36 Post by sidders »

no complaints from me

Post Reply