A curious issue: icons in tray disappear after a while

Post here if you feel others can duplicate your so discovered "bug"

Moderator: Forum moderators

Post Reply
User avatar
mikewalsh
Moderator
Posts: 6346
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 874 times
Been thanked: 2071 times

A curious issue: icons in tray disappear after a while

Post by mikewalsh »

Morning, guys.

I'm honestly not sure where the hell to put this. It could be a script-related thing, or it could be just programming in general. [mention]rockedge[/mention] , if in your opinion this in the wrong place, would ya move it please? Thanks.

This isn't a recent thing, though this latest manifestation exemplifies it to a tee. It's happened to me with multiple Puppies over the years, too many to list or even remember what they were, so I'm going to assume this is a more general fault.....possibly with JWM/Rox.....maybe even with mime-types (which TBH I've never understood.)

It even happens across multiple machines, so not hardware-specific, either.

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

What I'm talking about is, quite simply, this:-


Image


See the little scripts showing with an 'X' on them.....showing the icon can't be found/located?

I run a number of small utilities from the notification area; with the new set-up (much larger screen), I can use more of these and it no longer looks silly the way it once did. Anyways, they're pretty much all variations on a theme; Fred and musher0 helped out with suggestions for this a couple or three years back.....like this:-

Code: Select all

#/bin/sh
#
# Place executable icon in tray - thanks to musher0/fredx181
#
yad --notification --item-separator=":" --no-middle --text="Zoom exec-changer" --command='/usr/local/bin/ZoomSelect.sh' --image='/usr/share/pixmaps/zoomauto.png' --menu="Quit:quit:gtk-quit"
It puts an icon into the 'tray', along with a tooltip; you click on the icon, it executes a script. Right-click allows you to remove the icon if so desired.

These things will happily work fine for months/years. All of a sudden, despite nothing changing.....script still looks in the right place, the item location hasn't changed, nor its ownerships/exec permissions/whatever.....it henceforth cannot "see" the icon, even though it's staring it in the face!

Has anybody else ever come across something like this before? The above example is josejp2424's DPup Buster64; if those two missing icons were both from my own scripts, I'd perhaps not be quite so curious, but one is a utility Jose has mastered into the ISO, so it's there by default. I fire Busterpup up maybe a couple of times a week; last time was maybe a week ago. Nothing has been altered/changed/installed/uninstalled for around a month. A week ago, those icons were displaying; now, they're not.

It's not a life or death issue by any means, but I'm curious because it's been happening over a long period of time, across multiple Puppies and various different boxes......and I've been trying to get to the bottom of this for a long while.

Anybody have any ideas, please? Advice/suggestions will, as always, be very much appreciated.


Mike. ;)
Last edited by mikewalsh on Tue Jul 28, 2020 12:15 am, edited 1 time in total.
darry19662018
Posts: 453
Joined: Sat Dec 14, 2019 12:24 am
Has thanked: 54 times
Been thanked: 65 times

Re: A curious issue.....

Post by darry19662018 »

Yes Mike I have had the same issue - can't remember which Pupplets. Anyway I watch with interest what the answer is.
User avatar
fredx181
Posts: 3250
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 408 times
Been thanked: 1412 times
Contact:

Re: A curious issue: icons in tray disappear after a while

Post by fredx181 »

Hi Mike, weird.... I cannot reproduce it (on jose's Busterpup64, works fine for me with any image), can you attach the zoomauto.png image, so I can try ?
You have this problem with any other images ?

P.S. I see no reason why this topic has been moved from Programming, it's a question about programming, so should fit there IMO.
EDIT: Well, on second thought, Bug reports is okay also.

EDIT2: Oh, and.. Mike, can you say some more about how the scrips are started? E.g. from /root/Startup maybe ?

Fred
User avatar
mikewalsh
Moderator
Posts: 6346
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 874 times
Been thanked: 2071 times

Re: A curious issue: icons in tray disappear after a while

Post by mikewalsh »

Hiya, Fred.

Yep; started from /root/Startup, as always. I always seem to have 'issues' with /root/.config/autostart, despite it being the emerging "standard" for anything like this.

Icon attached. It's one of my home-made ones, and is working without issue in my other Pups.....only Busterpup is giving problems.


Mike. ;)
Attachments
zoomauto.png
zoomauto.png (10.58 KiB) Viewed 734 times
User avatar
fredx181
Posts: 3250
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 408 times
Been thanked: 1412 times
Contact:

Re: A curious issue: icons in tray disappear after a while

Post by fredx181 »

Hi Mike, I wish I could reproduce, still it's working fine, with exact script as you have, pointing to the zoomauto.png image running from /root/Startup.
I see at your screenshot that the redshift icon shows ok (also using yad --notification), other icons besides zoomauto.png too ?
My version of DpupBuster64 has yad v0.40.3, yours too ?
Mysterious...

Fred
williams2
Posts: 1066
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 306 times

Re: A curious issue: icons in tray disappear after a while

Post by williams2 »

I always seem to have 'issues' with /root/.config/autostart
Only valid .desktop files, with an Exec= line, and a .desktop file name will be started, that are in /root/.config/autostart. All other files (eg. scripts) will be ignored.

See: /bin/xdg_autostart.sh

In /root/Startup, executable (permissions) scripts and binaries will execute when X starts.

I don't know about the disappearing icons. It sounds like a problem with the JWM config files.
User avatar
mikewalsh
Moderator
Posts: 6346
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 874 times
Been thanked: 2071 times

Re: A curious issue: icons in tray disappear after a while

Post by mikewalsh »

D'ohh..!! (How dense can ya get...?) Image

Fred/all:- In this particular instance, I tracked down the problem. Completely self-inflicted, too.

I said I hadn't made any changes for well over a month, right? Erm.....well, that's not strictly true, TBH.

I have this awful habit of working on stuff till the wee small hours; I'm yawning fit to crack a jaw, make mistakes, don't remember making 'em....arrgh. I remember now, I was playing around with different versions of YAD itself, about a week ago. Don't ask me why, but anyway... When you said about the version in yours, I thought I'd check this one. Good job I did, too; kept getting "File does not exist or I can't find it". Odd, I thought; upon checking yad itself, I'd only gone and replaced it with the 32-bit version of 0.40.0, hadn't I? :shock: :oops: :roll:

Replaced it with the original, and.....all back to normal following a re-start of "X".

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

(I'd also had issues with the logout GUI. Jose has built his own version of this, also utilising YAD. I've re-jigged it to use much larger icons, a different theme, etc.....this had also lost all its icons. Yet strangely, the actual GUI, plus my zoom-autostart switcher GUI, seemed to be working under the 32-bit YAD (!!), just not the icons. Probably 'cos I have the 32-bit_compat_libs SFS loaded...)

I like this logout GUI. Even has a time-out bar built-in, along the top....


Image


Mike. ;)
User avatar
bigpup
Moderator
Posts: 7298
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 951 times
Been thanked: 1613 times

Re: A curious issue: icons in tray disappear after a while

Post by bigpup »

You must be smarter than the software you are coding :ugeek:
Did anyone see you do it?
If yes.
Something is wrong with the CPU flux junction switcher on this computer :shock:
Or some other high technical sounding statement!

Proven again!
The thing you do not tell us is usually the clue to solving the problem.

We have all been there! :lol: :thumbup2:

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
mikewalsh
Moderator
Posts: 6346
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 874 times
Been thanked: 2071 times

Re: A curious issue: icons in tray disappear after a while

Post by mikewalsh »

*Embarrassed*

(Slinks away under a rock....) Aye, you are dead right, bigpup. We have all "been there", sure as eggs are eggs.... Doesn't make it any less embarrassing, though.....does it??

Arrrrghhh!!!

:lol: :lol: :lol: :lol: :lol:

Mike. :D
User avatar
fredx181
Posts: 3250
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 408 times
Been thanked: 1412 times
Contact:

Re: A curious issue: icons in tray disappear after a while

Post by fredx181 »

You will get over it Mike ! :lol: ;)

Fred
ozsouth
Posts: 1665
Joined: Sun Jul 12, 2020 2:38 am
Location: S.E. Australia
Has thanked: 252 times
Been thanked: 752 times

Re: A curious issue: icons in tray disappear after a while

Post by ozsouth »

Yes Mike we ALL do it at some point. Early this month I couldn't run my Brother multifunction scanner - printer part was fine but no scanner. Yep - blithely ignored the i386 in the scanner driver & installed in ScPup64. Took me hours to realise & fixed in a minute. :oops:
Post Reply

Return to “Bug Reports”