Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 20 Oct 2014, 07:36
All times are UTC - 4
 Forum index » House Training » Bugs ( Submit bugs )
2.16 Final can not remove icons on desktop * SOLVED *
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [25 Posts]   Goto page: 1, 2 Next
Author Message
PhilCoo

Joined: 24 Mar 2007
Posts: 39
Location: Staffordshire, UK

PostPosted: Thu 17 May 2007, 06:33    Post subject:  2.16 Final can not remove icons on desktop * SOLVED *  

I can not remove icons from desktop,right-click and select remove item but they keep coming back when re-booting.I have also tried manually editing choice/rox-filler/puppypin file but the icons still come back. Previous versions 2.15 etc work ok when removing icons.I am using from live-cd not a hard drive install.I can move the icons I want and the new position is remembered on the next boot-up.

Thanks for any assistance

Phil

Last edited by PhilCoo on Sat 19 May 2007, 05:32; edited 1 time in total
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Thu 17 May 2007, 09:48    Post subject:  

I deleted the 'chat' icon, rebooted, and it was still gone (live-cd).

It will only come back when you upgrade a version (or do pfix=clean) or change the SFS layers -- behaviour that is necessary (there was some discussion on this and much deliberation about it by me when the SFS Boot Manager was being designed).
Back to top
View user's profile Send private message Visit poster's website 
PhilCoo

Joined: 24 Mar 2007
Posts: 39
Location: Staffordshire, UK

PostPosted: Thu 17 May 2007, 12:41    Post subject:  

BarryK wrote:
I deleted the 'chat' icon, rebooted, and it was still gone (live-cd).
It will only come back when you upgrade a version .


Thanks for reply, however when I re-boot all the icons I had previously removed still come back.Are there any other files that need editing to keep the icons away when not needed ?
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Thu 17 May 2007, 19:24    Post subject:  

You might be having a problem with ROX-Filer. Look at /root/Choices/ROX-Filer before and after you delete an icon, see if it is getting changed. It might not be. Also look in /root/.config/ROX-Filer/
Back to top
View user's profile Send private message Visit poster's website 
PhilCoo

Joined: 24 Mar 2007
Posts: 39
Location: Staffordshire, UK

PostPosted: Fri 18 May 2007, 06:52    Post subject:  

BarryK wrote:
You might be having a problem with ROX-Filer. Look at /root/Choices/ROX-Filer before and after you delete an icon, see if it is getting changed. It might not be. Also look in /root/.config/ROX-Filer/


The puppypin file does show the changes if I remove icons,however when I save to cd and re-boot the puppypin file reverts to show all icons.I am having the same problems in 2.16 Beta,rc and final.Works ok in 2.15.

Could not see /root/.config/ROX-Filer, but could see /root/.config/ROX-sourceforge/ but no puppypin file inside it.( I may not have got the file name completely correct,not in puppy at moment)

Thanks

Phil
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Fri 18 May 2007, 21:48    Post subject:  

That is odd. The code that handles this is in /etc/rc.d/rc.update.
You will see near the bottom of the script, a block of code that is supposed to only execute if a version update or a change in the SFS layers -- if you could figure out why it's going wonky in your case, that would be good.
Back to top
View user's profile Send private message Visit poster's website 
PhilCoo

Joined: 24 Mar 2007
Posts: 39
Location: Staffordshire, UK

PostPosted: Sat 19 May 2007, 05:43    Post subject:  

Thanks Barry,now solved.

Opened /etc/rc.d/rc.update, under the fix desktop section I found this entry: grep -v -E 'pinboard>|<\?xml' /root/Choices/ROX-Filer/PuppyPin | sort -u >> /tmp/PuppyPinTmp and modified it to read: grep -v -E 'pinboard>|<\?xml version="1.0"?>' /root/Choices/ROX-Filer/PuppyPin | sort -u >> /tmp/PuppyPinTmp (highlighted changed text in red to stand out).
This now works with the icons not wanted removed from the desktop.

Cool

Phil
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Sat 19 May 2007, 08:12    Post subject:  

PhilCoo, now I'm puzzled!
The original code works fine for me. The code
grep -v -E 'pinboard>|<\?xml'
is supposed to screen out lines that have the string 'pinboard>' or '<\?xml' in them. Could you please open a terminal and test this:
Code:
sh-3.00# grep -E 'pinboard>|<\?xml' /root/Choices/ROX-Filer/PuppyPin
<?xml version="1.0"?>
<pinboard>
</pinboard>

You can see what I get as output, which is what I expect.
Back to top
View user's profile Send private message Visit poster's website 
PhilCoo

Joined: 24 Mar 2007
Posts: 39
Location: Staffordshire, UK

PostPosted: Sat 19 May 2007, 15:54    Post subject:  

Hi Barry, I get the same result as yours when run in a terminal window.


sh-3.00# grep -E 'pinboard>|<\?xml' /root/Choices/ROX-Filer/PuppyPin
<?xml version="1.0"?>
<pinboard>
</pinboard>


Phil
Back to top
View user's profile Send private message 
GuestToo
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: Sat 19 May 2007, 17:07    Post subject:  

Puppy definitely deletes some of my desktop shortcuts without asking ... i try to keep backups of my PuppyPin file, just in case

of course, you could use your own pin file instead of PuppyPin, then Puppy would leave it alone ... or you could use multiple pin files, and switch between them to switch to different desktops (icons and wallpaper)

looking in the rc.update script, it says:

"delete duplicate execs ... also delete line if exec"

i may have duplicate exec's that run the same program but with different parameters

i definitely have desktop shortcuts that execute programs that are installed on other partitions that are not mounted when Puppy first boots (the partition might be automatically mounted in rc.local, or it might not be mounted unless i mount it myself manually) ... which would explain why my shortcut to Opera installed on /mnt/hda11 keeps disappearing
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Sat 19 May 2007, 21:34    Post subject:  

PhilCoo, okay, so the change you made doesn't explain why it now works. There is some other factor coming into play here.
Back to top
View user's profile Send private message Visit poster's website 
GuestToo
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: Sat 19 May 2007, 22:39    Post subject:  

the change causes <\?xml lines to not be excluded by grep -v, because the second question mark in <\?xml version="1.0"?> is not escaped
Back to top
View user's profile Send private message 
Scoticus


Joined: 01 Jan 2007
Posts: 443
Location: Erskine, Scotland

PostPosted: Sun 20 May 2007, 06:41    Post subject: 2.16 Final can not remove icons on desktop
Subject description: not SOLVED for me
 

Despite PhilCoo advising that the problem has been solved it has not been solved for me.

Admittedly I am a total newbie to any linux and have extreme difficulty in following / replicating what others are sayiing so a lot of this could be down to me.

Can anyone give me a walk through the solution. I attempted to follow PhilCoo's "Opened /etc/rc.d/rc.update, under the fix desktop section I found this entry" and managed to get as far as /rc.update but could not find the fix desktop section

I am saving to a multisession DVD and am so frustrated in having to rearrange the icons on each reboot. What gets me is that having positioned icons where I want them they are overwritten by those that should have been consigned to oblivion.

Where am I going wrong ?

Ian
Back to top
View user's profile Send private message 
PhilCoo

Joined: 24 Mar 2007
Posts: 39
Location: Staffordshire, UK

PostPosted: Sun 20 May 2007, 07:01    Post subject:  

Hi Ian,
When you have the folder opened /etc/rc.d, you should be able to see the file rc.update,right-click the file and choose to open as text,scroll down to close to end of file and you will see a section "fix desktop" under there is the entry I changed as per previous post.

This fix is still working after several re-boots Cool Must have been lucky as it seems not official way of working.

Phil
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Sun 20 May 2007, 10:48    Post subject:  

Let's look at the logic here. Line 280 in /etc/rc.d/rc.update:
Code:
 if [ $NEWPVERSION -gt $OLDPVERSION -o "$LASTUNIONRECORD" != "$PREVUNIONRECORD" ];then

This is the key line that causes the desktop icons to be recalculated. In plain English, this line tests if you have booted a new version of Puppy, or the variables LASTUNIONRECORD and PREVUNIONRECORD are different.

Now, you can check both of those conditions:

Open /etc/rc.d/BOOTCONFIG and you will see those two latter variables. Are they identical?

Checking the Puppy version variables is not so simple.

You can also edit rc.update. Insert these lines just before the 'if' statement in line 280:
Code:
echo "NEWPVERSION=$NEWPVERSION  OLDPVERSION=$OLDPVERSION"
sleep 20
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 2 [25 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Bugs ( Submit bugs )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0800s ][ Queries: 13 (0.0063s) ][ GZIP on ]