Drive Icons All Bunched Up In The Corner
Drive Icons All Bunched Up In The Corner
Hi,
I'd like to know why on one of my computers (the one I remastered on) the drives are neatly iconified in a line, but on other computers (with different resolutions) the drives all show up in the corner on top of each other.
And is there a fix?
Thanx.
I'd like to know why on one of my computers (the one I remastered on) the drives are neatly iconified in a line, but on other computers (with different resolutions) the drives all show up in the corner on top of each other.
And is there a fix?
Thanx.
The Way of the Samurai
Hi Ghost Dog.
I don't know, what's the cause of this.
But puppy has the event manager which contains a tab called Desktop Icons. It has a check box down below in the gui, "Tick box to erase then redraw and realign existing icons". Activate this option, confirm with ok and restart X. The drive icons should be Ok then.
I don't know, what's the cause of this.
But puppy has the event manager which contains a tab called Desktop Icons. It has a check box down below in the gui, "Tick box to erase then redraw and realign existing icons". Activate this option, confirm with ok and restart X. The drive icons should be Ok then.
[b][url=http://lazy-puppy.weebly.com]LazY Puppy Home
The new LazY Puppy Information Centre[/url][/b]
The new LazY Puppy Information Centre[/url][/b]
- nilsonmorales
- Posts: 972
- Joined: Fri 15 Apr 2011, 14:39
- Location: El Salvador
did you try evenmanager in terminal
eventmanager in terminal aling icons sections i dont remember when come at home i will see ok
cya
cya
On my netbook, 1024x600 res., the drive icons would
overlap and were too low on screen.
Went to "etc/event manager."
Scrolled to bottom.
ICON-PLACE-EDGE GAP=64.
Changed 64 to 80.
Solved both problems.
overlap and were too low on screen.
Went to "etc/event manager."
Scrolled to bottom.
ICON-PLACE-EDGE GAP=64.
Changed 64 to 80.
Solved both problems.
Inspiron 700m, Pent.M 1.6Ghz, 1Gb ram.
Msi Wind U100, N270 1.6>2.0Ghz, 1.5Gb ram.
Eeepc 8g 701, 900Mhz, 1Gb ram.
Full installs
You can also try to adjust the pin_grid_step value in the rox filer pinboard options [ fine | medium | coarse ] .
[ pinboard_grid_step" $HOME/.config/rox.sourceforge.net/ROX-Filer/Options ]
When I first played with /sbin/pup_event_frontend_d , such stacking on one place appeared many times .
Even yesterday .
Cause was that i made a script to transform lots of strings like VALUE="`command`" to VALUE=`command` and at one place a * was translated as \* , causing the pup_event_frontend_d to grep wrong ( no ) values .
[ pinboard_grid_step" $HOME/.config/rox.sourceforge.net/ROX-Filer/Options ]
When I first played with /sbin/pup_event_frontend_d , such stacking on one place appeared many times .
Even yesterday .
Cause was that i made a script to transform lots of strings like VALUE="`command`" to VALUE=`command` and at one place a * was translated as \* , causing the pup_event_frontend_d to grep wrong ( no ) values .
pup_event_frontend_d has nifty but heavy code to grep the already placed icons in the PuppyPin file .
The problem is, that rox aligns the icons nearest possible to the grid step , which is 2=fine, 16=medium and 32=coarse ,
NOT by the values given to him by pup_event_frontend_d .
These different values show up in the Choices/ROX-Filer/PuppyPin file,
while pup_event_fronted_d still thinks, that the current place is not occupied .
I don't actually know how to sync these correctly or easily .
Have played with the code, but could not supersede shinobar's code .
BTW : 4.3 and 4.3.1 are different !
The problem is, that rox aligns the icons nearest possible to the grid step , which is 2=fine, 16=medium and 32=coarse ,
NOT by the values given to him by pup_event_frontend_d .
These different values show up in the Choices/ROX-Filer/PuppyPin file,
while pup_event_fronted_d still thinks, that the current place is not occupied .
I don't actually know how to sync these correctly or easily .
Have played with the code, but could not supersede shinobar's code .
BTW : 4.3 and 4.3.1 are different !
«Give me GUI or Death» -- I give you [[Xx]term[inal]] [[Cc]on[s][ole]] .
Macpup user since 2010 on full installations.
People who want problems with Puppy boot frugal :P
Macpup user since 2010 on full installations.
People who want problems with Puppy boot frugal :P
pup_event_frontend_d free_coord
I was thinking about it and I came to an idea, that works as first test :
It shouldn't be a timing problem cos I run on 2coresX2,6GHz for the time that ROX writes to PuppyPin and grep into it presents usable values .
OLD CODE THAT WOULD BE REPLACED :
Code: Select all
free_coord_simple(){
DRIVE_NAME="$1"
[ "$OLD_DRV_NAME" ] && LAST_PLACE=`grep -m1 -w "\\.pup_event/drive_${OLD_DRV_NAME}" /root/Choices/ROX-Filer/PuppyPin`
[ "$LAST_PLACE" ] && { COORD_X=`echo "$LAST_PLACE" | cut -f2 -d'"'`; COORD_Y=`echo "$LAST_PLACE" | cut -f4 -d'"'`; }
echo "'$OLD_DRV_NAME' $DRIVE_NAME
'$LAST_PLACE'
$COORD_X $COORD_Y"
case $ICON_PLACE_ORIENTATION in #see /etc/eventmanager
bottom)
[ "$COORD_Y" ] || COORD_Y=`expr $SCRN_Y - $ICON_PLACE_EDGE_GAP` #default 64, see /etc/eventmanager
COORD_Y=`expr \( $COORD_Y + $PIN_GRID_STEP2 \) / $PIN_GRID_STEP '*' $PIN_GRID_STEP`
[ "$COORD_X" ] && COORD_X=$((COORD_X + ICON_PLACE_SPACING)) || COORD_X=$ICON_PLACE_START_GAP #default 32, see /etc/eventmanager
[ "$COORD_X" -gt $MAX_X ] && { COORD_Y=$((COORD_Y - ICON_PLACE_SPACING)) ; COORD_X=$ICON_PLACE_START_GAP ; }
echo COORD_X=$COORD_X COORD_Y=$COORD_Y #DEBUG
;;
top)
[ "$COORD_Y" ] || COORD_Y=$ICON_PLACE_EDGE_GAP
COORD_Y=`expr \( $COORD_Y + $PIN_GRID_STEP2 \) / $PIN_GRID_STEP '*' $PIN_GRID_STEP`
[ "$COORD_X" ] && COORD_X=$((COORD_X + ICON_PLACE_SPACING)) || COORD_X=$ICON_PLACE_START_GAP #default 32, see /etc/eventmanager
[ "$COORD_X" -gt $MAX_X ] && { COORD_Y=$((COORD_Y + ICON_PLACE_SPACING)) ; COORD_X=$ICON_PLACE_START_GAP ; }
echo COORD_X=$COORD_X COORD_Y=$COORD_Y #DEBUG
;;
left)
[ "$COORD_X" ] || COORD_X=$ICON_PLACE_EDGE_GAP #default 64, see /etc/eventmanager
[ "$COORD_Y" ] && COORD_Y=$((COORD_Y + ICON_PLACE_SPACING)) || COORD_Y=$ICON_PLACE_START_GAP #default 32, see /etc/eventmanager
COORD_Y=$((((COORD_Y+PIN_GRID_STEP2)/PIN_GRID_STEP)*PIN_GRID_STEP))
[ "$COORD_Y" -gt $MAX_Y ] && { COORD_X=$((COORD_X + ICON_PLACE_SPACING)) ; COORD_Y=$ICON_PLACE_START_GAP ; }
echo COORD_X=$COORD_X COORD_Y=$COORD_Y #DEBUG
;;
right)
[ "$COORD_X" ] || COORD_X=`expr $SCRN_X - $ICON_PLACE_EDGE_GAP` #default 64, see /etc/eventmanager
[ "$COORD_Y" ] && COORD_Y=$((COORD_Y + ICON_PLACE_SPACING)) || COORD_Y=$ICON_PLACE_START_GAP #default 32, see /etc/eventmanager
COORD_Y=`expr \( $COORD_Y + $PIN_GRID_STEP2 \) / $PIN_GRID_STEP '*' $PIN_GRID_STEP`
[ "$COORD_Y" -gt $MAX_Y ] && { COORD_X=$((COORD_X - ICON_PLACE_SPACING)) ; COORD_Y=$ICON_PLACE_START_GAP ; }
echo COORD_X=$COORD_X COORD_Y=$COORD_Y #DEBUG
;;
esac
OLD_DRV_NAME="$DRIVE_NAME"
}
OLD CODE THAT WOULD BE REPLACED :
Code: Select all
free_coord_normal(){
#find a free place on desktop. v410 avoid exact overlapping icons...
#091208 finetune placement, also any side of screen...
#read the coords grid, code from shinobar...
COORDSGRID=`grep -o -e ' x="[0-9]*" y="[0-9]*" ' /root/Choices/ROX-Filer/PuppyPin | sed 's/[0-9]"/"/g'`
case $ICON_PLACE_ORIENTATION in #see /etc/eventmanager
bottom)
COORD_Y=`expr $SCRN_Y - $ICON_PLACE_EDGE_GAP` #default 64, see /etc/eventmanager
COORD_Y=`expr \( $COORD_Y + $PIN_GRID_STEP2 \) / $PIN_GRID_STEP '*' $PIN_GRID_STEP`
COORD_X=$ICON_PLACE_START_GAP #default 32, see /etc/eventmanager
xPATTERN=" x=\"${COORD_X}\" y=\"${COORD_Y}\" "
xyCNT=0 #precaution.
while [ 1 ];do
xgPATTERN=`echo -n "$xPATTERN" | sed 's/[0-9]"/"/g'`
[ "`echo "$COORDSGRID" | grep "$xgPATTERN"`" = "" ] && break
COORD_X=`expr $COORD_X + $ICON_PLACE_SPACING`
if [ $COORD_X -gt $MAX_X ];then #start next line up.
xyCNT=`expr $xyCNT + 1`
[ $xyCNT -gt 1 ] && break
COORD_Y=`expr $COORD_Y - $ICON_PLACE_SPACING`
COORD_X=$ICON_PLACE_START_GAP
fi
xPATTERN=" x=\"${COORD_X}\" y=\"${COORD_Y}\" "
done
;;
top|left|right)
[ ... ]
;;
esac
}
And don't forget to adjust the call to the free_coord function in the
add_pinboard_func function
as
add_pinboard_func function
as
Code: Select all
[ "`grep "$ppPATTERN" /root/Choices/ROX-Filer/PuppyPin`" != "" ] && return #precaution.
#free_coord
free_coord_simple ${ONEDRVNAME}
echo "<?xml version=\"1.0\"?>
Hi Ghost Dog,
After booting your remaster on the computer where the icons get bunched up, what is the output of these commands?:
After booting your remaster on the computer where the icons get bunched up, what is the output of these commands?:
Code: Select all
grep drive /initrd/pup_ro2/root/Choices/ROX-Filer/PuppyPin
grep -E "IDSTRING|PUPPYSFS" /etc/DISTRO_SPECS
Hi,
I use desksetup-.0.4.pet from 01micko so that when I have
my icons as I want I cam easily save them and restore them
if necessary (which I have personally only needed after a
Puppy version number upgrade).
However, I haven't experienced the bunching problem, but
perhaps someone with the problem might try it.
My regards
I use desksetup-.0.4.pet from 01micko so that when I have
my icons as I want I cam easily save them and restore them
if necessary (which I have personally only needed after a
Puppy version number upgrade).
However, I haven't experienced the bunching problem, but
perhaps someone with the problem might try it.
My regards
Hi npierce,
It doesn't seem to just be on remasters, but also on standard Puppies, maybe just certain resolutions?
Karl Godt replied to the PM I sent him, saying:
It doesn't seem to just be on remasters, but also on standard Puppies, maybe just certain resolutions?
Karl Godt replied to the PM I sent him, saying:
I haven't gotten around to exploring this. But it really sounded like he had fixed the problem for a minute there..."of course there is no free_coord_normal" ..
there are two or three free_coord functions and ash seems to pick the latest one south if something calls free_coord .
I would suggest to rename the free_coord 's to uniqe names like
free_coord_orig ,
free_coord_2 and
free_coord_normal
and put in my free_coord function with whatever uniqe name underneath the closing bracket of the latest free_coord function and call it with the name given .
The Way of the Samurai
Come on, you guys!
Come on, you guys! This has the potential to benefit all Puppies!
If Karl is right (Karl, where did you go?), then the problem of drive icons all bunching together on top of each other (and making Puppy look bad) might be fixed.
Don't let this die, just because I'm not smart enough to understand the implementation. I never said I was smart, so you can't expect much from me. I just pointed out a problem that I would like to see fixed, and will help if I can.
Others have joined this thread adding their support for such a solution.
Karl, can you make a working version of /sbin/pup_event_frontend_d for us to play with? I would very much appreciate it, and I know some of the others here would, too.
If Karl is right (Karl, where did you go?), then the problem of drive icons all bunching together on top of each other (and making Puppy look bad) might be fixed.
Don't let this die, just because I'm not smart enough to understand the implementation. I never said I was smart, so you can't expect much from me. I just pointed out a problem that I would like to see fixed, and will help if I can.
Others have joined this thread adding their support for such a solution.
Karl, can you make a working version of /sbin/pup_event_frontend_d for us to play with? I would very much appreciate it, and I know some of the others here would, too.
The Way of the Samurai
This is from wary-5.5 .
free command output is different from older Lupu Puppies.
path to /tmp/pup_event_icon_change_flag has changed.
EDIT > Fixed missing PIN_GRID_STEP, PIN_GRID_STEP2, MAX_X, MAX_Y
free command output is different from older Lupu Puppies.
path to /tmp/pup_event_icon_change_flag has changed.
EDIT > Fixed missing PIN_GRID_STEP, PIN_GRID_STEP2, MAX_X, MAX_Y
- Attachments
-
- pup_event_frontend_d-w5.5.gz
- no comment since i had some severe
aufs whiteout problems installing that on slacko-5.3 non-pae - (10.6 KiB) Downloaded 200 times
Last edited by Karl Godt on Thu 23 May 2013, 17:05, edited 1 time in total.