How to access/remove/install toolbar and menu items?

Moderator: Forum moderators

Post Reply
User avatar
Governor
Posts: 989
Joined: Sat Nov 12, 2022 7:11 pm
Has thanked: 262 times
Been thanked: 48 times

How to access/remove/install toolbar and menu items?

Post by Governor »

I have a "Browser" icon on my toolbar, just to the right of the "desktop" icon.

How can I determine what is actually launching when I click on it?
How can I remove the icon? How can I remove the associated app?
Can I re-associate the "Browser" icon to a browser I choose myself instead of a default browser?
Can I choose a meaningful icon instead of the generic no-name icon that is there by default?
How can I add an app to the toolbar?

Also, the same questions for the programs in the main menu?
Thanks.

PS. I managed to find the default firefox folder by a round-about method using pfind, and delete the folder. This was mainly luck and guesswork. The icon remains on the toolbar and nothing happens when I click on it, so I know I deleted the right folder.
There must be another way to find locations of programs in the toolbar or menu, right?

I used to walk the earth thinking the news was real and adults knew what was going on.

User avatar
wizard
Posts: 2071
Joined: Sun Aug 09, 2020 7:50 pm
Location: Oklahoma, USA
Has thanked: 2814 times
Been thanked: 746 times

Re: How to access/remove/install toolbar and menu items?

Post by wizard »

@Governor

For tips on changing the JWM tray, take a look at this topic:
viewtopic.php?p=130044&hilit=jwm#p130044

wizard

Big pile of OLD computers

User avatar
Governor
Posts: 989
Joined: Sat Nov 12, 2022 7:11 pm
Has thanked: 262 times
Been thanked: 48 times

Re: How to access/remove/install toolbar and menu items?

Post by Governor »

pp4mnklinux wrote: Tue Nov 05, 2024 11:11 am

Hi @Governor :

There are a lot of different options to modify the task bar, (upper taskbar , lateral, down taskbar...) but the one which works in every puppy distro is locate the folders where that is configured.

To do this, you must go to:

root ... SHOW HIDDEN FILES ... and locate this.

.jwmrc-tray

and it is possible u are using a second one... so look for .jwmrc.tray2

These files have de info about what it is in your task bar.

If you see my capts, I have two taskbars, so I have two .JWMRC-TRAY files.

You can see my .jwmrc-tray code here:

8<-------snipped

The only file I could find was this one:
/var/local/sss/root/.jwmrc-tray

Which contains the code below. I presume I can edit this as needed?
How do I define 'defaultbrowser' to a browser of my own choice?
Thanks.

Code: Select all

<?xml version="1.0"?>  
<JWM>
	<Tray autohide="off" insert="right" layer="above" halign="left" valign="bottom" height="30" layout="horizontal" >
		<TrayButton label="Menu" icon="gnome-dark.svg" border="false">root:3</TrayButton>
		<Spacer width="5" height="5"/>
		<TrayButton label="Places" border="false">root:x</TrayButton>
		<Spacer width="5" height="5"/>
		<TrayButton popup="Show desktop" icon="desktop.svg">showdesktop</TrayButton>
		<TrayButton popup="Browser" icon="/usr/local/lib/X11/pixmaps/www48.png" border="false">exec:defaultbrowser</TrayButton>
		<TrayButton popup="Terminal" icon="/usr/local/lib/X11/pixmaps/console48.png" border="false">exec:defaultterminal</TrayButton>
		<Spacer width="5" height="5"/>
		<Pager/>
		<Spacer width="5" height="5"/>
		<TaskList maxwidth="200"/>
		<Spacer width="5" height="5"/>
		<Dock/>
		<Spacer width="5" height="5"/>
		<Clock format="%a %l:%M %p"><Button mask="1">exec:minixcal</Button><Button mask="3">exec:PupClockset</Button></Clock>
		<Spacer width="5" height="5"/>
		<TrayButton icon="utilities_menu.png" border="false">root:z</TrayButton>
	</Tray>
</JWM>

I used to walk the earth thinking the news was real and adults knew what was going on.

User avatar
Governor
Posts: 989
Joined: Sat Nov 12, 2022 7:11 pm
Has thanked: 262 times
Been thanked: 48 times

Re: How to access/remove/install toolbar and menu items?

Post by Governor »

8<-------snipped

pp4mnklinux wrote: Wed Nov 06, 2024 6:22 am

Choosing your default browser is really easy using included software. You must go to SETUP, DEFAULT APPLICATION CHOOSER and there you gonna choose the soft u wanna use as default. SIMPLY AND EASY (look capt) - Only one more thing, if the program doesn't appear in the list, add the route and that's all.

8<-----snipped

Feel free to make any edits as necessary—this process is straightforward. I chose this method because I often use portable applications stored on USB drives or other partitions, and these programs don't always appear in search results. The best way to ensure access to them is by editing these files directly. Format: - Name - Icon - Location For example: ``` <TrayButton popup="midori" icon="/usr/share/icons/blue_midori.png">exec:/mnt/sda3/opt/midori/midori</TrayButton>

Selecting your default browser is quite easy with the included software. Simply navigate to SETUP, then DEFAULT APPLICATION CHOOSER, where you can select the software you want to use as your default. If the program doesn’t appear in the list, simply add the path to it, and you're done. I hope you find this information helpful. Have a great day! Best regards.

My applications chooser looks like this:

Default Applications Chooser.jpg
Default Applications Chooser.jpg (157.32 KiB) Viewed 547 times

Looks like only program names are listed, not actual filenames, and no paths (which greatly limits this apps usefullness), except a few documents that have a viewer app in front, ie. mdview /usr/share/doc/browsers.md

I noticed an odd behavior. In the Web browser selection box, there are 3 choices: firefox_esr, palemoon, and this info file: mdview /usr/share/doc/browsers.md.
If I choose palemoon, the firefox choice disappears. Does that mean it will not be a future-available choice if I click on the "Apply" button?

The available choices are slim pickins, how can I add items to the available choices?
Thanks!

I used to walk the earth thinking the news was real and adults knew what was going on.

User avatar
greengeek
Posts: 1461
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 593 times
Been thanked: 208 times

Re: How to access/remove/install toolbar and menu items?

Post by greengeek »

Governor wrote: Tue Nov 05, 2024 9:59 am

I have a "Browser" icon on my toolbar, just to the right of the "desktop" icon.

How can I determine what is actually launching when I click on it?
How can I remove the icon? How can I remove the associated app?
Can I re-associate the "Browser" icon to a browser I choose myself instead of a default browser?
Can I choose a meaningful icon instead of the generic no-name icon that is there by default?
How can I add an app to the toolbar?

please post the output of the following command:

cat /root/.jwmrc-tray

Normally that file would specify the "app" that is associated with the icon you mentioned.

User avatar
Governor
Posts: 989
Joined: Sat Nov 12, 2022 7:11 pm
Has thanked: 262 times
Been thanked: 48 times

Re: How to access/remove/install toolbar and menu items?

Post by Governor »

pp4mnklinux wrote: Wed Nov 06, 2024 7:24 am

@Governor ;

Hello Governor,

I apologize if my previous explanation was unclear.

Here's what I meant:

When I mentioned "copy route," I was referring to the process of navigating to the file you want to use, right-clicking on it to copy the file's path, and then pasting this path into your default program.

For example, if I want to use my portable version of Firefox, I navigate to the folder where it is installed and copy the path: /files/portable/Firefox-portable64/LAUNCH Next, I right-click on the default application chooser and paste the path there.

This process works in EasyOS, and I assume it should be similar in BookwormPup.

I hope this helps. Cheers.

Wow, that worked.
Thanks!
<TrayButton popup="Browser" icon="/usr/local/lib/X11/pixmaps/www48.png" border="false">exec:defaultbrowser</TrayButton>

I used to walk the earth thinking the news was real and adults knew what was going on.

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

Re: How to access/remove/install toolbar and menu items?

Post by mikewalsh »

@pp4mnklinux :-

Governor is confused enough to begin with. With the greatest respect, please don't post further in this thread, because you're giving out conflicting sets of information.......and you're just clouding the issue, and making matters worse..!

@Governor :-

As usual, let's start at the beginning. What exact Puppy are you using here, please?

Your 'Default Applications Chooser' looks different to the one shown by pp4mnklinux for one simple reason; because Barry seems to still be using the older GUI in EasyOS. What you have is the 'updated version'; it's been the same now for nearly 10 years.

As to the app's 'lack of functionality', not so. The apps referenced here all refer to matching scripts in /usr/local/bin. An alteration made here (then 'OK'd') is immediately written to the corresponding 'default_whatever' script.

Frequently the GUI doesn't always list apps which you know you have installed. That's no problem; you just enter the full $PATH directly in the wee box for that app yourself, then 'OK' it. Frankly, I find it easier to go into /usr/local/bin and edit the relevant script directly.

This will set the default for that application......in this case, your browser.

===================================

Every Puppy I have ever seen - or used - has a 'hidden' file in /root, called .jwmrc-tray. Pp4mnklinux was right about that. This is the file that defines the contents of the tray, and anything contained within; menu button, launchers, the 'notification area', the clock......all that stuff.

I've never seen a file at /var/local/sss/root/.jwmrc-tray. I can only surmise this is some sort of 'backup' of the default .jwmrc-tray, but it's definitely NOT the 'active' file in regular use. And this is a huge red herring anyway, because the code for the default browser 'launch' button is not going to give you the information you want. All you will see for the executable is 'defaultbrowser' (which you already know).

That information will be found - and changed, if required - in the 'defaultbrowser' file within /usr/local/bin. THIS is where you set default apps; nowhere else.....and the default apps GUI app in the Menu is working with these same files behind the scenes anyway.

Does any of this make sense to you, before we go any further? Are you able to follow what I've detailed above? As with Linux generally, there are multiple approaches to tackle all this stuff, but what I've outlined above is generally regarded as the "official", correct Puppy solution.

Mike. ;)

User avatar
Governor
Posts: 989
Joined: Sat Nov 12, 2022 7:11 pm
Has thanked: 262 times
Been thanked: 48 times

Re: How to access/remove/install toolbar and menu items?

Post by Governor »

mikewalsh wrote: Wed Nov 06, 2024 11:01 am

@pp4mnklinux :-

Governor is confused enough to begin with. With the greatest respect, please don't post further in this thread, because you're giving out conflicting sets of information.......and you're just clouding the issue, and making matters worse..!

@Governor :-

As usual, let's start at the beginning. What exact Puppy are you using here, please?

Code: Select all

▶—— /etc/rc.d/PUPSTATE ——◀
 • PUPMODE=13
 • PDEV1='nvme0n1p2'
 • DEV1FS='ext3'
 • PUPSFS='nvme0n1p2,ext3,/Bookworm64_10.0.6/puppy_dpupbw64_10.0.6.sfs'
 • PUPSAVE='nvme0n1p2,ext3,/Bookworm64_10.0.6/dpupbw64save-2024-06-25-basic'
 • PMEDIA='usbflash'
 

Your 'Default Applications Chooser' looks different to the one shown by pp4mnklinux for one simple reason; because Barry seems to still be using the older GUI in EasyOS. What you have is the 'updated version'; it's been the same now for nearly 10 years.

As to the app's 'lack of functionality', not so. The apps referenced here all refer to matching scripts in /usr/local/bin. An alteration made here (then 'OK'd') is immediately written to the corresponding 'default_whatever' script.

Frequently the GUI doesn't always list apps which you know you have installed. That's no problem; you just enter the full $PATH directly in the wee box for that app yourself, then 'OK' it. Frankly, I find it easier to go into /usr/local/bin and edit the relevant script directly.

This will set the default for that application......in this case, your browser.

===================================

Every Puppy I have ever seen - or used - has a 'hidden' file in /root, called .jwmrc-tray. Pp4mnklinux was right about that. This is the file that defines the contents of the tray, and anything contained within; menu button, launchers, the 'notification area', the clock......all that stuff.

I've never seen a file at /var/local/sss/root/.jwmrc-tray. I can only surmise this is some sort of 'backup' of the default .jwmrc-tray, but it's definitely NOT the 'active' file in regular use. And this is a huge red herring anyway, because the code for the default browser 'launch' button is not going to give you the information you want. All you will see for the executable is 'defaultbrowser' (which you already know).

That information will be found - and changed, if required - in the 'defaultbrowser' file within /usr/local/bin. THIS is where you set default apps; nowhere else.....and the default apps GUI app in the Menu is working with these same files behind the scenes anyway.

Does any of this make sense to you, before we go any further? Are you able to follow what I've detailed above? As with Linux generally, there are multiple approaches to tackle all this stuff, but what I've outlined above is generally regarded as the "official", correct Puppy solution.

Mike. ;)

Yes, it makes sense. I noticed that this file has the correct browser (designated by me) which I set in 'Set default apps':
/usr/local/bin/defaultbrowser
It contains; exec /mnt/nvme0n1p5/Xtra-FirefoxESR-portable64/LAUNCH "$@"
I believe the browser previously associated with the toolbar 'Browser' button was what the OS shipped with.

I changed the line in /root/.jwmrc-tray from 'defaultbrowser' to this:
<TrayButton popup="p5/Xtra-FirefoxESR-portable64" icon="/usr/local/lib/X11/pixmaps/www48.png" border="false">exec:defaultbrowser</TrayButton>
Do I need to re-start xorgwizard for it to take effect? I hope to see the detail instead of "Browser" when my mouse hovers over the toolbar icon.
Thanks.

I used to walk the earth thinking the news was real and adults knew what was going on.

User avatar
bigpup
Moderator
Posts: 7297
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 950 times
Been thanked: 1614 times

Re: How to access/remove/install toolbar and menu items?

Post by bigpup »

Probably will need to do a restart of the graphical server

menu ->Leave ->restart of the graphical server

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: 6344
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 871 times
Been thanked: 2072 times

Re: How to access/remove/install toolbar and menu items?

Post by mikewalsh »

@Governor :-

Do I need to re-start xorgwizard for it to take effect? I hope to see the detail instead of "Browser" when my mouse hovers over the toolbar icon.

bigpup wrote: Wed Nov 06, 2024 2:58 pm

Probably will need to do a restart of the graphical server

menu ->Leave ->restart of the graphical server

Um; no. It's not necessary.

At one time, I too would have given the same advice as bigpup, above. However, a re-start of "X" itself tends to close any apps you have open at the time, which is not always what you want.....especially if you're in the middle of working on something else.

With this stuff, years of messing around with ~/.jwmrc-tray has taught me that since it's JWM you're making changes to, it's only JWM that needs to be re-started. So:-

Code: Select all

jwm -restart

.....will do what you want. Or you can do it in the logout GUI; I'm not in Bookwormpup64 ATM, but I believe it has a button for "Restart window manager" (though I could be wrong; radky has modified this slightly compared with older Pups).

Mike. ;)

User avatar
Governor
Posts: 989
Joined: Sat Nov 12, 2022 7:11 pm
Has thanked: 262 times
Been thanked: 48 times

Re: How to access/remove/install toolbar and menu items?

Post by Governor »

greengeek wrote: Wed Nov 06, 2024 8:25 am
Governor wrote: Tue Nov 05, 2024 9:59 am

I have a "Browser" icon on my toolbar, just to the right of the "desktop" icon.

How can I determine what is actually launching when I click on it?
How can I remove the icon? How can I remove the associated app?
Can I re-associate the "Browser" icon to a browser I choose myself instead of a default browser?
Can I choose a meaningful icon instead of the generic no-name icon that is there by default?
How can I add an app to the toolbar?

please post the output of the following command:

cat /root/.jwmrc-tray

Normally that file would specify the "app" that is associated with the icon you mentioned.

I found the correct file and made the change in 'Browser' description. Here is how the output looks now:

Code: Select all

# cat /root/.jwmrc-tray
<?xml version="1.0"?>  
<JWM>
	<Tray autohide="off" insert="right" width="0" height="30" layer="above" layout="horizontal" halign="left" valign="bottom" >
		<TrayButton label="Menu" icon="gnome-dark.svg" border="false">root:3</TrayButton>
		<Spacer width="5" height="5"/>
		<TrayButton label="Places" border="false">root:x</TrayButton>
		<Spacer width="5" height="5"/>
		<TrayButton popup="Show desktop" icon="desktop.svg">showdesktop</TrayButton>
		<TrayButton popup="p5/Xtra-FirefoxESR-portable64" icon="/usr/local/lib/X11/pixmaps/www48.png" border="false">exec:defaultbrowser</TrayButton>
		<TrayButton popup="Terminal" icon="/usr/local/lib/X11/pixmaps/console48.png" border="false">exec:defaultterminal</TrayButton>
		<Spacer width="5" height="5"/>
		<Pager/>
		<Spacer width="5" height="5"/>
		<TaskList maxwidth="200" labeled="true"/>
		<Spacer width="5" height="5"/>
		<Dock/>
		<Spacer width="5" height="5"/>
		<Clock format="%a %d %b %H:%M"><Button mask="1">exec:minixcal</Button><Button mask="3">exec:PupClockset</Button></Clock>
		<Spacer width="5" height="5"/>
		<TrayButton icon="utilities_menu.png" border="false">root:z</TrayButton>
	</Tray>
</JWM>

I used to walk the earth thinking the news was real and adults knew what was going on.

Post Reply

Return to “BookwormPup”