WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Adding entries to wbar  (Read 6626 times)

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Adding entries to wbar
« Reply #15 on: March 27, 2013, 03:37:25 PM »
Re-read reply #6.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11411
Re: Adding entries to wbar
« Reply #16 on: March 27, 2013, 03:40:53 PM »
Hi Paulo
I don't use  jwm  so I'm not familiar with it. Maybe check out some of the  .jwmrc  directories under  usr/share/jwm/tce/

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11411
Re: Adding entries to wbar
« Reply #17 on: March 27, 2013, 03:55:45 PM »
Hi Paulo
You could also look the makemenu script for clues:
Code: [Select]
less `which jwm_makemenu`

Offline AmatCoder

  • Full Member
  • ***
  • Posts: 179
    • AmatCoder Projects
Re: Adding entries to wbar
« Reply #18 on: March 27, 2013, 04:12:09 PM »
Yes there is a pop-up menu but strangely it does not display the new entry I have made.
It runs perfectly and icon is displayed in wbar, but not listed in the pop-up menu, yet others like FireFox17 are,
which is what I modeled my entry on.

Applications pop-up menu is generated by every window manager with xxx_makemenu scripts. Example: jwm_makemenu or openbox_makemenu

It read *.desktop files from /usr/local/share/applications/ and generates a custom menu.

Offline Paulo

  • Full Member
  • ***
  • Posts: 139
Re: Adding entries to wbar
« Reply #19 on: March 27, 2013, 04:27:23 PM »
@gerald_clark

Is there any reason as to why .wmx is included in .xfiletool.lst by default before I take it out?

@Rich

I will look at:
Code: [Select]
less `which jwm_makemenu`
@AmatCoder

Quote
It read *.desktop files from /usr/local/share/applications/ and generates a custom menu.

That is what I also understood, but it does not do it until a reboot or a restart of the X server for some reason.
(B.T.W. Thank you very much for gtkdialog.tcz, works very well).
« Last Edit: March 27, 2013, 04:31:28 PM by Paulo »

Offline AmatCoder

  • Full Member
  • ***
  • Posts: 179
    • AmatCoder Projects
Re: Adding entries to wbar
« Reply #20 on: March 27, 2013, 05:17:30 PM »
Quote
It read *.desktop files from /usr/local/share/applications/ and generates a custom menu.

That is what I also understood, but it does not do it until a reboot or a restart of the X server for some reason.

_makemenu scripts are executed by tce-load when install. You can force it with:

Code: [Select]
tc@box:~$ desktop.sh foo
tc@box:~$ jwm_restart

where 'foo' is the name of desktop item in /usr/local/share/applications i.e. foo.desktop

EDIT:
Alternatively:
Code: [Select]
tc@box:~$ jwm_makemenu foo
tc@box:~$ jwm_restart

if you don't want add an icon from 'X-FullPathIcon' field to wbar.
« Last Edit: March 27, 2013, 05:29:24 PM by AmatCoder »

Offline Paulo

  • Full Member
  • ***
  • Posts: 139
Re: Adding entries to wbar
« Reply #21 on: March 27, 2013, 06:14:08 PM »
Thanks AmatCoder those are handy bits of information.
What I also do if I don't want to use wbar is to make the .desktop file as per normal but just keep it in a directory,
rox will show the associated icon and when I click on it it will run what ever is in the Exec= line.
Very handy to run cli apps in aterm or even gtkdialog scripts.