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 Tue 11 Dec 2018, 06:56
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How to fix the drive icon behaviour in recent Puppies...
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [18 Posts]   Goto page: 1, 2 Next
Author Message
Mike Walsh


Joined: 28 Jun 2014
Posts: 4448
Location: King's Lynn, UK.

PostPosted: Tue 22 May 2018, 07:12    Post subject:  How to fix the drive icon behaviour in recent Puppies...
Subject description: Am I the only one to notice the odd behaviour of desktop drive icons with the new build-system?
 

Morning, all.

As the tag-line says; am I the only one to notice the somewhat odd behaviour of the desktop drive icons in recent Puppies, built with the new Woof-CE build-system?

It appears to be related to the EventManager. Over the last few years, the way it works has been been slowly altering. With the older 5-series and early 6-series Pups, if you wanted to 'refresh' the drive icons, and to re-align them, you would right-click a drive icon, and select 'Run The Desktop Drive Icon Manager'.

You would then tick the check-box for 'Refresh/Realign existing icons'. With older Pups, you then needed to restart 'X' to complete the operation. In some of the newer Pups, this got changed to merely clicking on 'OK', and the restart occurred automatically.

In some of the newest spins/remasters (I'm thinking here specifically of Sailor Enceladus' remaster of Slacko 571, and peebee's new Upup Bionic), this option has been completely removed. Don't get me wrong; I'm not criticising the Puppies themselves; I run both, and they're some of the fastest, lightest, sweetest-performing Puppies it's ever been my pleasure to use, but.....I just don't like the way the EventManager is now handling the drive icons. Maybe it's simply me, but perhaps others aren't too happy with this behaviour either?

(Things have definitely changed, since the EventManager script is now almost 100 lines shorter.....and the appearance has also been modified, too.)

------------------------------------------------------

If you carry out any operation that affects the drive icons (or even simply restarting 'X' for whatever reason), they seem to re-appear totally at random.....sometimes, overwriting each other.

With Bionic, I get this:-





With Slacko 571, this:-





Notice how sdb1 is sitting on top of sdc1.....and with the omission of the 'Refresh/Realign' option, there is now no way to correct this bizarre behaviour. Multiple restarts of 'X' don't have any effect.

----------------------------------------------------------------

This is how everything should look on my desktop; drives, as well as partitions, all in alphabetic order. This is from Slacko 570, Micko's 'original', which Sailor based his brilliant 571 re-spin on:-





Well, I've done some experimentation; and have discovered that by substituting /usr/sbin/eventmanager and /etc/eventmanager with the appropriate items from Xenial 7081 or Tahrpup 606 (efi), I've now got control back! I've just performed this 'swap' in Bionic, and my drive icons are now back to how I want them:-





I'm assuming that the EventManager is a self-contained script, since everything else appears to be working how it should. Might I respectfully suggest that this be re-considered in new Puppy builds.....or at least looked at?

--------------------------------------------------------------

For anybody who would like to 're-set' this behaviour, I've made up a .pet using the above-mentioned items from the Xenial 7081 ISO; this being the one with the 'correct' behaviour for refreshing/realigning the icons, but no need to manually restart 'X'. You can find it attached below.

The usual caveats apply for something like this. Back Puppy up, before installing the .pet.....so you can restore things to their previous condition, in case this doesn't behave itself with your particular set-up. You'll probably need to reset your drive icon positioning, if you've altered it at all, and you may need to reset any auto-mounted partition/drives with pMount; I'm not certain about that, since this has been performed with the 'existing' set-up from my own copy of Xenial.

Hope this perhaps helps some of you.


Mike. Wink
EventManager_reset-newer_Pups.pet
Description  Pet for 're-setting' the EventManager drive icon behaviour from the newest Woof-CE build-system...
pet

 Download 
Filename  EventManager_reset-newer_Pups.pet 
Filesize  6.62 KB 
Downloaded  84 Time(s) 

_________________
MY PUPPY PACKAGES | 'Thanks' are always appreciated!
--------------------------------------


Last edited by Mike Walsh on Tue 22 May 2018, 12:31; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
bigpup


Joined: 11 Oct 2009
Posts: 11367
Location: S.C. USA

PostPosted: Tue 22 May 2018, 09:29    Post subject:  

You report this to the Woof CE?

You may have found a bug that got into this program.

Make a pull request to submit to Woof CE.

If you really want this to get into Puppy, the code is there in Woof-CE.
https://github.com/puppylinux-woof-CE/woof-CE

_________________
I have found, in trying to help people, that the things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 4448
Location: King's Lynn, UK.

PostPosted: Tue 22 May 2018, 10:48    Post subject:  

Hi, bigpup.

Mm. Be happy to (if it is a bug, and not just my elderly hardware).....except I haven't got a clue as to how you go about doing that. All this business of 'pull requests', although I've tried to figure it out, flies completely over my head.

I'm assuming the new version of the EventManager is a part of the current build-system, of course.....but since it's only Upup BB, and Sailor's re-mastered Slacko 571 where I've noticed this (both of which appear to have been built with what I presume is the 'new' system), then I think I'm probably safe in making this assumption.

What would be the easiest way of putting a report in? I'd want to make sure it got to the right place, and the right people, ASAP; I wouldn't want it getting lost in the 'mumbo-jumbo'!

Care to point me in the right direction, old son? Or should I just post in the 'Bug Reports' section of the Forum (I assume it does get checked by the relevant parties)?


Mike. Wink

_________________
MY PUPPY PACKAGES | 'Thanks' are always appreciated!
--------------------------------------

Back to top
View user's profile Send private message Visit poster's website 
aaaaa


Joined: 22 May 2018
Posts: 28

PostPosted: Tue 22 May 2018, 12:06    Post subject:  

What do i exactly have to do to get the bad behavior as in the screenshots?
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 4448
Location: King's Lynn, UK.

PostPosted: Tue 22 May 2018, 12:28    Post subject:  

Hallo, aaaaa. 'Welcome' to the kennels!

I can't give an exhaustive list, because I haven't checked every possible scenario where this might occur.....but, in my experience, usually anything that involves re-starting 'X.

Menu->Exit (or Leave)->Restart graphical server. Do be aware that if you do this while you've got programs/apps running, this action causes them to shut down.....because the graphical server ('X') is then starting a completely new session.


Mike. Wink

_________________
MY PUPPY PACKAGES | 'Thanks' are always appreciated!
--------------------------------------

Back to top
View user's profile Send private message Visit poster's website 
aaaaa


Joined: 22 May 2018
Posts: 28

PostPosted: Tue 22 May 2018, 12:58    Post subject:  

Does davids45 also have this issue?
Back to top
View user's profile Send private message 
aaaaa


Joined: 22 May 2018
Posts: 28

PostPosted: Tue 22 May 2018, 14:56    Post subject:  

I don't have that issue, i restart X and i don't see what's wrong.

However, if i change the screen resolution and then restart X, i do see issues...

I attach a current eventmanager script with the Realign checkbox.

Does this fix the issue?

answer: no, it doesnt
Back to top
View user's profile Send private message 
aaaaa


Joined: 22 May 2018
Posts: 28

PostPosted: Tue 22 May 2018, 15:41    Post subject:  

Actually to make things work as expected, the file to be fixed is .xinitrc.

I attached a fixed .xinitrc...

does this fix the issue?
.xinitrc.gz
Description 
gz

 Download 
Filename  .xinitrc.gz 
Filesize  2.51 KB 
Downloaded  75 Time(s) 
Back to top
View user's profile Send private message 
davids45


Joined: 26 Nov 2006
Posts: 1168
Location: Chatswood, NSW

PostPosted: Tue 22 May 2018, 20:56    Post subject: Event manager in recent woof Pups  

G'day Mike Walsh & a^5,

Well, as you asked Wink , I do have a minor issue with recent Pups starting fully as far as my pinboard is concerned.

I do have many partitions (two 500GB drives formated with 14 partitions each) and I like a lot of application icons on my pinboard for easy access run them. And pwidgets.

At present, my pinboard is incomplete when its loading seems to have finished (first screenshot):
1) Many desktop icons only have the default icon not their intended specific icon.
2) pwidgets is not displayed.
3) the right-click menu lacks my sfs added apps (I have a boot mounted sfs of about 30 apps, each run as sym-links to my boot-mounted data partition)
4) the 14 drive icons for sdb appear very slowly in sequence after sda's 14 pop up quite quickly across the pinboard bottom.

Once I think the initial loading is finished, I'm now accustomed to restarting X (clicked from the Exit menu) and clicking a pwidgets start-up script icon or a re-start pin+pwidgets icon I drag to the pinboard.

These instantly give me the expected complete pinboard (second screenshot). So it seems to me everything is there but not displayed before the pinboard set-up stops? I can afford these 'wasted' 10 seconds in doing the re-starts, or I'm too old to be bothered about it.

Most of these icons and apps are shared from my data partition (sda5) so sda5 needs to be mounted before anything else. Perhaps this is being delayed and/or the symlinks are taking too long to set up hence the missing icon links and app desktop file links?

Nonetheless, I was about to ask the forum how to make a single-click script to do this (re-start X, pwidgets - I'd put it in /Rox/Startup or put an icon on the pinboard) but sort-of have been beaten to it - thanks mind-reader Mike Very Happy .

My thought has been that of late the whole pinboard start-up seems slowed by the prolonged drive icon displaying but that was only my problem because of my too-many drives/partitions.

Earlier, more annoying, eventmanager problems in displaying drive-icons (stacks, arrangement difficulty) I had have been fixed - thanks peebee and others.

David S.
typical-startup-missing-icons-widgets-menuitems.jpg
 Description   My incomplete pinboard on starting with recent Pups; too many pinboard icons and drive icons perhaps?; right-click menu does not have sfs apps; no pwidgets
 Filesize   97.87 KB
 Viewed   133 Time(s)

typical-startup-missing-icons-widgets-menuitems.jpg

after-restartX-all-present.jpg
 Description   doing an immediate restart-X shows fully loaded pinboard and right-click menu
 Filesize   123.26 KB
 Viewed   134 Time(s)

after-restartX-all-present.jpg


Last edited by davids45 on Wed 23 May 2018, 18:52; edited 1 time in total
Back to top
View user's profile Send private message 
peebee


Joined: 21 Sep 2008
Posts: 3566
Location: Worcestershire, UK

PostPosted: Wed 23 May 2018, 04:01    Post subject:  

https://github.com/puppylinux-woof-CE/woof-CE/commit/8c8cf30650e59e94736459f7c207bdfb14c40b66
_________________
LxPup = Puppy + LXDE
Back to top
View user's profile Send private message Visit poster's website 
bigpup


Joined: 11 Oct 2009
Posts: 11367
Location: S.C. USA

PostPosted: Wed 23 May 2018, 06:27    Post subject:  

Seems in around March this desktop icon problem was worked on in Woof CE
https://github.com/puppylinux-woof-CE/woof-CE/issues/1153
There is a link at the end of this discussion to the new code.

How to submit a pull request in Woof CE
Go here:
https://github.com/puppylinux-woof-CE/woof-CE
Click on sign up.
You first make an account with Github so you can post to it.
This is nothing more than making a name to use and giving it a password to sign in with.
(I suggest use your Puppy forum name. Puppy people know that name and it gives you some respect with submitting new pull requests)

After you make a name and password and sign in using them.
You can now actively post pull requests, code, messages, replies, etc.....
Just like you do in this forum.

The Woof CE page layout.

pull request
A new topic you want to start, submit, etc...

Issues
These are pull requests already made.
Open ones are still being worked on.
Closed ones are complete.

After you sign in.
Any of the areas you go to, should offer a button to click on, that allows you to post to that area.

Always good to look in the open and closed issues before starting a new pull request.

Keep in mind a Puppy that got created with Woof CE, is going to have in it what was in Woof CE at the date the Puppy was created.
Any code changes made to Woof CE, after that creation date, are not going to be in that Puppy, unless the developer of that Puppy updates to the latest Woof CE.

_________________
I have found, in trying to help people, that the things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 4448
Location: King's Lynn, UK.

PostPosted: Wed 23 May 2018, 07:52    Post subject:  

Morning, bigpup.

Well, I signed-up with GitHub. It wouldn't let me use my forum name.....said it was already in use! To the best of my knowledge I've never created a GitHub a/c before, so.....

Thanks for the explanation about pull requests, issues, etc. Explains why the 'Issue' I submitted was almost immediately closed.....because I hadn't already submitted a 'pull request'? *Jeez*...talk about confusing.

Having read the discussion link you gave, it seems like this individual 'wdlkmpx' absolutely hates ROX, doesn't he? I see mavrothal trying to pour some oil on troubled waters..! Laughing

Still, it appears the issue's been addressed. No matter; the substitution I've performed with the Xenial components apparently works & does what I want it to, so.....I'm inclined to leave it as it is. And there looks to have been several downloads of the .pet package already (whether out of curiosity, or because others are finding this same problem, I wouldn't care to speculate.)

Cheers, anyway.


Mike. Wink

_________________
MY PUPPY PACKAGES | 'Thanks' are always appreciated!
--------------------------------------

Back to top
View user's profile Send private message Visit poster's website 
woodenshoe-wi

Joined: 28 Jul 2017
Posts: 87
Location: Wisconsin

PostPosted: Wed 23 May 2018, 10:52    Post subject:  

Mike Walsh wrote:

Thanks for the explanation about pull requests, issues, etc. Explains why the 'Issue' I submitted was almost immediately closed.....because I hadn't already submitted a 'pull request'? *Jeez*...talk about confusing.


The issue you submitted was closed automatically by GitHub because wdlkmpx added a commit 8c8cf30 with "fixes #1208" in the commit description. You did everything right, that is just how GitHub works.

Code:
.xinitrc: always clean_desk_icons on x startup
this always fixes issues
fixes #1208


Not everyone hates ROX, Smile I have been working on the source code a little.
The changes so far include

    - Fix "overwrite if newer" check-box
    - Add "Ignore Older" and "Merge" checkboxes
    - Xattr Browser: Allow removal of un-editable user attributes
    - Merged some work by Dennis Tomas to add "copy to clipboard" / "paste from clipboard" functionality
    - Add "New" button to toolbar
    - Add ability to hide columns in List View

If anyone wants to test my new version, feedback on whether everything is working as it should would be appreciated.
http://www.murga-linux.com/puppy/viewtopic.php?p=992606#992606
Back to top
View user's profile Send private message 
8Geee


Joined: 12 May 2008
Posts: 1751
Location: N.E. USA

PostPosted: Wed 23 May 2018, 11:39    Post subject:  

Just one ? here, by Xattr browser, do you mean Chromium-based?

Regards
8Geee

_________________
Linux user #498913

Some people need to reimagine their thinking.
Back to top
View user's profile Send private message 
woodenshoe-wi

Joined: 28 Jul 2017
Posts: 87
Location: Wisconsin

PostPosted: Wed 23 May 2018, 12:01    Post subject:  

8Geee wrote:
Just one ? here, by Xattr browser, do you mean Chromium-based?


No, I mean the one in ROX-Filer.
attributes_browser.jpg
 Description   
 Filesize   36.91 KB
 Viewed   161 Time(s)

attributes_browser.jpg

Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [18 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
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.0947s ][ Queries: 13 (0.0298s) ][ GZIP on ]