Q:How restore icons/programs in notification area?(SOLVED)

Using applications, configuring, problems
Message
Author
B.K. Johnson
Posts: 807
Joined: Mon 12 Oct 2009, 17:11

#21 Post by B.K. Johnson »

@Semme
And in case he doesn't, BP should know about this.
You are too swift. I had all intention of writing in this thread.
As soon as I found that I lost my icons after installing MRUF-lst in a new 6.0.5 and subsequently recovered by uninstalling, I think my first obligation was to advise mosher0. Read the last line of my post to bigpup. Check the timestamps of the 2 posts. It would not have been fair to mosher0 to "accuse" his software for what I had reported. Certainly not in this thread. And certainly not before giving him a chance to respond.

There is a likelihood that because of my latest experience that it could be the reason also for the first. But I cannot categorically say so and I wont. It can be co-incidence. Maybe I was just lucky that the uninstall worked out OK. But as musher0 himself cautioned, MRUF-lst is development software so those who install it should take appropriate measures.
[color=blue]B.K. Johnson
tahrpup-6.0.5 PAE (upgraded from 6.0 =>6.0.2=>6.0.3=>6.0.5 via quickpet/PPM=Not installed); slacko-5.7 occasionally. Frugal install, pupsave file, multi OS flashdrive, FAT32 , SYSLINUX boot, CPU-Dual E2140, 4GB RAM[/color]

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#22 Post by Semme »

You may not understand the logic of mentioning such an app, but I'm sure BP will.
I have found in trying to help people, that the things they do not tell you are usually the clue to solving the problem.
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#23 Post by bigpup »

Well, I posted this before I read the last few posts.
I guess this is just added info, now :lol:

What does the contents of /root/startup/autostart look like?
Does it look like all the proper program scripts are there?
You say you do not have this autostart directory in /root/startup.
You should have it.
It is in the puppy_tahr_ 6.0.5.sfs

autostart is a symbolic link to /root/.config/autostart.

See images below.

I wonder if you could get the Tahrpup 6.0.5. iso.
In your Tahrpup frugal install. Just replace all the Puppy files with the ones from this iso.
Use your old save file .
And let the save file get updated on first boot.

Probably will need to rerun the bootloader config to get the boot info using the correct file names.
Yours probably is still using the names from Tahrpup 6.0
Attachments
capture16749.png
/root/startup
(28.06 KiB) Downloaded 129 times
capture17462.png
/root/startup/autostart
(27.45 KiB) Downloaded 135 times
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 :shock:
YaPI(any iso installer)

User avatar
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

#24 Post by MochiMoppel »

B.K. Johnson Please rightclick any of the .desktop files in /root/.config/autostart, select properties and post a screenshot of this dialog.

Go to directory /usr/share/applications and click on the first .desktop file (abiword.desktop). Does abiword start?

And please do what Semme said and break the comment for flsynclient-fullscrn.png. This page is very painful to read on my display.

Sailor Enceladus
Posts: 1543
Joined: Mon 22 Feb 2016, 19:43

#25 Post by Sailor Enceladus »

MochiMoppel wrote:And please do what Semme said and break the comment for flsynclient-fullscrn.png.
This page is very painful to read on my display.
The first three descriptions are all too long on my 1024x768 screen.
I wonder if it's possible for the forum to add something to wrap the text onto a 2nd line?

User avatar
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

#26 Post by MochiMoppel »

Sailor Enceladus wrote:I wonder if it's possible for the forum to add something to wrap the text onto a 2nd line?
Nothing needs to be added, but something should be deleted: the outdated nowrap attribute:

Code: Select all

<td class="attachrow" nowrap="nowrap"><span class="genmed">After closing the leafpad window containing clipit_startup, this leafpad page with the flsynclient.desktop is displayed.  Sequence continues until all files are displayed and closed.<br /></span></td>
After deleting nowrap="nowrap" the description wraps. But I guess this to change would be for the phpBB developers, not for the users of the forum software.

B.K. Johnson
Posts: 807
Joined: Mon 12 Oct 2009, 17:11

#27 Post by B.K. Johnson »

bigpup
Here are screenshots of the Startup and autostart directories.
I don't have a link to autostart in the Startup dirrectory like you do. Some minor differences if would appear in the directories
Attachments
autostart.png
/root/.config/autostart
(22.42 KiB) Downloaded 101 times
myroot-Startup dir.png
/root/Startup
(18.67 KiB) Downloaded 104 times
[color=blue]B.K. Johnson
tahrpup-6.0.5 PAE (upgraded from 6.0 =>6.0.2=>6.0.3=>6.0.5 via quickpet/PPM=Not installed); slacko-5.7 occasionally. Frugal install, pupsave file, multi OS flashdrive, FAT32 , SYSLINUX boot, CPU-Dual E2140, 4GB RAM[/color]

B.K. Johnson
Posts: 807
Joined: Mon 12 Oct 2009, 17:11

#28 Post by B.K. Johnson »

@MochiMoppel
Screenshot of 3 of the Startup Controls apps.
I see that the EXEC boxes for netmon and freememapplet_tray are blank. In fact when I checked, all with the exception of network_tray were blank.

Clicking the abiword.desktop launched abiword.

I'll see what I can do about the scroll line if allowed to post-edit.
Attachments
properties of 3 autostart .png
properties of 3 autostart apps
(56.08 KiB) Downloaded 108 times

B.K. Johnson
Posts: 807
Joined: Mon 12 Oct 2009, 17:11

#29 Post by B.K. Johnson »

@Semme. MochiMoppel
Here is the input window for comments. It provides for 3 lines which you see is wrapped at my end.

The only thing I can do to ease your discomfort is to reduce the text length.
Attachments
scrn-comments.png
wrapped comments text in window
(22 KiB) Downloaded 98 times
[color=blue]B.K. Johnson
tahrpup-6.0.5 PAE (upgraded from 6.0 =>6.0.2=>6.0.3=>6.0.5 via quickpet/PPM=Not installed); slacko-5.7 occasionally. Frugal install, pupsave file, multi OS flashdrive, FAT32 , SYSLINUX boot, CPU-Dual E2140, 4GB RAM[/color]

User avatar
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

#30 Post by MochiMoppel »

B.K. Johnson wrote:I see that the EXEC boxes for netmon and freememapplet_tray are blank. In fact when I checked, all with the exception of network_tray were blank.
OK, this seems to be normal for Tahrpup. Try to click on a .desktop file that you say opens in leafpad at startup. Also try to execute such .desktop file in a terminal:

Code: Select all

xdg-open filename.desktop
I've seen (old) bug reports claiming that xdg-open opens the .desktop file in the default editor (is leafpad your default editor?) instead of executing it.

The only thing I can do to ease your discomfort is to reduce the text length.
That's always a good idea, but you don't need to reduce the text. Instead you should press ENTER after each line. And you have more than 3 lines, but please don't test the limits of the forum software. Have mercy with the readers.

B.K. Johnson
Posts: 807
Joined: Mon 12 Oct 2009, 17:11

#31 Post by B.K. Johnson »

MochiMoppel wrote:
Try to click on a .desktop file that you say opens in leafpad at startup.
Clicked on netmon_wce and network_tray. Icons for both appeared in the notification area and has remained.
Also try to execute such .desktop file in a terminal:

Code: Select all

xdg-open filename.desktop
I entered:

Code: Select all

xdg-open freememapplet_tray.desktop
an empty leafpad opened at line 1
see screenshot xdgopen2leafpad
I've seen (old) bug reports claiming that xdg-open opens the .desktop file in the default editor (is leafpad your default editor?) instead of executing it.
Looks like what's happening here. You're on to something MochiMoppel. How do I find what my default editor is on the system?
The only thing I can do to ease your discomfort is to reduce the text length.
That's always a good idea, but you don't need to reduce the text. Instead you should press ENTER after each line. And you have more than 3 lines, but please don't test the limits of the forum software. Have mercy with the readers.
I have edited the line already. You can see the original text in my previous post.

I'll deliberately include a long text in this post. Enter will be used where the software breaks for wrapping. Provide feedback.
Attachments
xdgopen2leafpad.png
xdg-open freememapplet_tray.desktop results in the opening of a leafpad
page. The partview icon does not show in the notification area.
(12.03 KiB) Downloaded 177 times
[color=blue]B.K. Johnson
tahrpup-6.0.5 PAE (upgraded from 6.0 =>6.0.2=>6.0.3=>6.0.5 via quickpet/PPM=Not installed); slacko-5.7 occasionally. Frugal install, pupsave file, multi OS flashdrive, FAT32 , SYSLINUX boot, CPU-Dual E2140, 4GB RAM[/color]

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#32 Post by bigpup »

I don't have a link to autostart in the Startup directory like you do.
Well, try putting a link to /root/.config/autostart in the /root/startup and see what happens.

This may also work to get stuff corrected.
I wonder if you could get the Tahrpup 6.0.5. iso.
In your Tahrpup frugal install. Just replace all the Puppy files with the ones from this iso.
Use your old save file .
And let the save file get updated on first boot.

Probably will need to rerun the bootloader config to get the boot info using the correct file names.
Yours probably is still using the names from Tahrpup 6.0
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 :shock:
YaPI(any iso installer)

B.K. Johnson
Posts: 807
Joined: Mon 12 Oct 2009, 17:11

#33 Post by B.K. Johnson »

Interesting piece of info.
This could be the bug report MochiMoppel mentioned.
https://bugs.launchpad.net/ubuntu/+sour ... bug/378783

User avatar
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

#34 Post by MochiMoppel »

B.K. Johnson wrote:

Code: Select all

xdg-open freememapplet_tray.desktop
an empty leafpad opened at line 1
Not good
[I'll deliberately include a long text in this post. Enter will be used where the software breaks for wrapping. Provide feedback.
Better.

Back to your main problem. As you know I don't use tahrpup and can only speculate. If tahrpup uses xdg-open to execute the .desktop files in /root/.config/autostart and if you had installed musher0's MRUF-lst pet then you now have a xdg-open that opens .desktop files with defaulttextviewer and not - as the original - with rox (which would be the equivalent of clicking on a .desktop file). Leaves the question why no one else has this problem. But you can easily check if this is really the cause. Open /usr/local/bin/xdg-open in a text editor and see if you find the line

Code: Select all

        *.txt|*.sh|*.lst|*.desktop)defaulttextviewer "$1" ;; # m0
Remove "|*.desktop" so that the line looks like this:

Code: Select all

        *.txt|*.sh|*.lst)defaulttextviewer "$1" ;; # m0
Then look for lines

Code: Select all

        *)if [ "`file -bp --mime-type $1 | grep -o text`" ];then  # m0
			defaulttextviewer "$1" # We play it safe!
Change the second line to gxmessage "$1" # We play it safe!
Save the script and restart X. If you see gxmessage dialogs instead of leafpad windows you know what causes the tray icons problems.

B.K. Johnson
Posts: 807
Joined: Mon 12 Oct 2009, 17:11

#35 Post by B.K. Johnson »

@MochiMoppell
I have been on to xdg-open being a source of the problem for a while. I figured from the code that any <applet>.desktop call would be opened in a textviewer (leafpad if that is my default). As I could not uninstall MRUF_lst I wanted a way to clear my system of everything related, so that is why I asked musher0 about the statement at the bottom of the xdg-open file which would reverse the changes he had made to the file.

I had begun to lose confidence in musher0 and certainly did not like his attitude. I tried the gxmessage that you suggested but that did not work. I thought that it would be safer to use the jemimah written xdg-open that he referred to, so I started looking in my archived pupsaves. Most likely it should be in either saluki or carolina but it wasn't there. I finally found it in an earlier tahr-602 backup which also has an early version of MRUF-lst. By co-incidence only. So xdg-open was introduced into my system by the developer 666philb and modified by MRUF-lst.

Here is what I found.

Code: Select all

#!/bin/sh
#this script created by Jemimah. see: http://murga-linux.com/puppy/viewtopic.php?t=63400&start=150
#110115 xdg-open used to be a symlink to defaulthandler.

#!/bin/bash
case "$1" in
        '') exit
                ;;
        *://*) exec rox -U "$1"
                ;;
        *@*.*) exec rox -U "mailto:${1}"
                ;;
        *) exec rox "$1"
                ;;
esac
After backing up and copying the above into xdg-open, I restarted the X graphic server from Menu >Exit >Restart graphical server, all my icons were restored. :D :D :D This is strange in light of the error you noted in your discussion with drunkjedi. So, I did a quick and dirty edit of my copy, keeping only the bash,

Code: Select all

#!/bin/bash
#this script created by Jemimah. see: http://murga-linux.com/puppy/viewtopic.php?t=63400&start=150
#110115 xdg-open used to be a symlink to defaulthandler.

#!#/#bin/bash
case "$1" in
        '') exit
                ;;
        *://*) exec rox -U "$1"
                ;;
        *@*.*) exec rox -U "mailto:${1}"
                ;;
        *) exec rox "$1"
                ;;
esac
Then I Menu >Exit >Restart graphical server; the icons were still OK, and they still persist despite reboots. :D

I have got my icons restored but there is stll much to analyse and explore before we mark this one as closed. All right Flash. :)

[EDIT]
Mochi, This was written before your other changes to xdg-open. I did not test them. And now that my icons are restored, I don't know how feasible it will be. We'll see.
[color=blue]B.K. Johnson
tahrpup-6.0.5 PAE (upgraded from 6.0 =>6.0.2=>6.0.3=>6.0.5 via quickpet/PPM=Not installed); slacko-5.7 occasionally. Frugal install, pupsave file, multi OS flashdrive, FAT32 , SYSLINUX boot, CPU-Dual E2140, 4GB RAM[/color]

User avatar
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

#36 Post by MochiMoppel »

B.K. Johnson wrote: I thought that it would be safer to use the jemimah written xdg-open that he referred to, so I started looking in my archived pupsaves. Most likely it should be in either saluki or carolina but it wasn't there. I finally found it in an earlier tahr-602 backup
Why didn't you look into /initrd/pup_ro2?

B.K. Johnson
Posts: 807
Joined: Mon 12 Oct 2009, 17:11

#37 Post by B.K. Johnson »

MochiNoppel asked:
Why didn't you look into /initrd/pup_ro2?
That's where musher0 said it would be but I could open several pupsaves from my system whereas I would have to reboot into another system to look at the target initrd/pup_ro2 without any risk of further corruption. Furthermore, I wanted to see if xdg-open was used in other puppies.
[color=blue]B.K. Johnson
tahrpup-6.0.5 PAE (upgraded from 6.0 =>6.0.2=>6.0.3=>6.0.5 via quickpet/PPM=Not installed); slacko-5.7 occasionally. Frugal install, pupsave file, multi OS flashdrive, FAT32 , SYSLINUX boot, CPU-Dual E2140, 4GB RAM[/color]

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#38 Post by musher0 »

FWIW:

Code: Select all

#!/bin/sh
# /root/my-applications/bin/solve-autostart.sh
#
# Goal: Solve the problem of *.desktop files in /root/.config/autostart 
# loading as text in the text viewer under jwm.
#
# This script puts the name of the executables in those *.desktop files 
# in an autostart.sh bash script in /root/Startup so they can be
# activated normally at the next launch of jwm.
#
# IMPORTANT:
# Restart your jwm normally after running this script. By that I mean
# either issue the command < restartwm > (without the chevrons) from
# a regular terminal OR issue the usual < xstart jwm > command from 
# the initial black console (the one before X starts).
#
# WARNING
# Use -- at your own risk -- only if you have the problem of the 
# *.desktop files in /root/.config/autostart loading as text in
# the text viewer.
#
# This solution has been tested as working ONLY with the jwm WM. 
# Other WM's may not need it. For ex., I know for a fact that the wmx
# WM doesn't need this solution since it doesn't have the problem.
#
# At your option, if you change WM's from jwm to something else, you 
# may manually move the *.desktop files back to their original 
# /root/.config/autostart location after using this script -- and erase 
# script /root/Startup/autostart.sh or make it non-executable.
#
# Or not; from the Puppy OS point of view, it does not matter where 
# those executables get loaded from, as long as they get loaded.
#
# (c) musher0, Friday Sept. 23 2016. GPL3.
####
cd /root/.config/autostart
if [ "`cat /etc/windowmanager`" = "jwm" ];then
	if [ "`ls -1 *.desktop 2>/dev/null`" != "" ];then
		AutO="/root/Startup/autostart.sh"
		CrunchBang="#!/bin/sh"

		echo "${CrunchBang}" | awk '{ print $1 }' > $AutO
		echo -e "# $AutO\n####" >> $AutO
		awk -F= '$1 ~ /Exec/ { print $2" &" }' *.desktop >> $AutO
		echo -e "wait\n### End ###" >> $AutO

		chmod +x $AutO

		mkdir -p /root/.config/autostart-NO
		mv *.desktop /root/.config/autostart-NO
	else
		echo -e "\n\n  There are no *.desktop files in this \"$PWD\" directory.\n\n"
	fi
fi
### End ###
Feel free to use or not -- if you still have the problem after reverting
to the pristine xdg-open and defaulthandler files.


To use, copy the code above in your text editor, save as file
< solve-autostart.sh > (without the chevrons) in directory
~/my-applications/bin, make executable and run once from a terminal.

If by error it is run again, nothing will happen, except a message will
tell the user that there are no *.desktop files in that directory.

Also this script will do nothing if jwm is not the WM.

IHTH.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

B.K. Johnson
Posts: 807
Joined: Mon 12 Oct 2009, 17:11

#39 Post by B.K. Johnson »

I incorrectly posted to the wrong thread.
Please readthis
[color=blue]B.K. Johnson
tahrpup-6.0.5 PAE (upgraded from 6.0 =>6.0.2=>6.0.3=>6.0.5 via quickpet/PPM=Not installed); slacko-5.7 occasionally. Frugal install, pupsave file, multi OS flashdrive, FAT32 , SYSLINUX boot, CPU-Dual E2140, 4GB RAM[/color]

B.K. Johnson
Posts: 807
Joined: Mon 12 Oct 2009, 17:11

#40 Post by B.K. Johnson »

Name is withheld to avoid banisment for alleged badgering. :lol:
badger: to ask (someone) repeatedly and annoyingly for something; pester.
The ginias whose script is perfect writes this in his modified xdg-open hereand does not expect *.desktop files to appear in the default textviewer?

Code: Select all

*.txt|*.sh|*.lst|*.desktop)defaulttextviewer "$1" ;; # m0 
If he excluded the *.desktop and allowed the <applet>.desktop processing to be done by rox with the addition of,

Code: Select all

*.desktop)rox "$1" ;;
the applet would have been correctly launched.

As said before, I have restored the default xdg-open and eliminated one of the shebangs in my system.
Entering at the terminal:

Code: Select all

rox  /us/share/applications/evince.desktop
launches evince. :D
Entering

Code: Select all

xdg-open  /us/share/applicationsevince.desktop
launches evince. :D :D

I renamed the xdg-open that I purged from my system, xdg-open-bak, made it executable and entered at the terminal:

Code: Select all

xdg-open-bak /usr/share/applications/evince.desktop
leafpad opened with the contents of evince.desktop. :cry:
I removed *.desktop from the line that called defaulttextviewer and added a new line so these are the two consecutive lines.

Code: Select all

        *.txt|*.sh|*.lst)defaulttextviewer "$1" ;; # m0
        *.desktop)rox  "$1" ;; #bkj
 
Entered at the terminal:

Code: Select all

xdg-open-bak /usr/share/applications/evince.desktop
An evince PDF Viewer page opened. :D :D

As the bandit in Sierra Madre would say: solve-autostart.sh, we don't need no stinking solve-autostart.sh.
Every coder makes mistakes. What is deeply offensive is those that refuse to acknowledge and insist that they are infallable even faced with the evidence.

I have no intention of re-installing MRUF_lst, so if anyone feels so inclined, he can repeat my experiments and confirm/deny the results.
[color=blue]B.K. Johnson
tahrpup-6.0.5 PAE (upgraded from 6.0 =>6.0.2=>6.0.3=>6.0.5 via quickpet/PPM=Not installed); slacko-5.7 occasionally. Frugal install, pupsave file, multi OS flashdrive, FAT32 , SYSLINUX boot, CPU-Dual E2140, 4GB RAM[/color]

Post Reply