You are not logged in.

#26 2019-09-23 04:49:14

hhh
Meep!
Registered: 2015-09-17
Posts: 8,483
Website

Re: jgmenu Lithium suggestions and bugfixes

Nice, run with that and see what you can see.

Offline

#27 2019-09-23 06:44:50

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 5,834
Website

Re: jgmenu Lithium suggestions and bugfixes

johnraff wrote:

jgmenu_run should return the prompt immediately, and up to now it did, but in the current version it does not.

Unfortunately this is intermittent. neutral
Was getting the prompt back just now, logged out/in and the prompt sticks - has to be killed with Ctrl+C. Install urxvt, check that it hasn't appeared in the "Applications" menu, click "Sync with openbox", check urxvt displayed, and jgmenu_run in terminal returns the prompt again. 1yFKJ9U.gif

@malm?


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.

Offline

#28 2019-09-23 21:03:24

malm
jgmenu developer
Registered: 2016-10-13
Posts: 508
Website

Re: jgmenu Lithium suggestions and bugfixes

@hhh, @johnraff

I don't think it's because of a different version.

If jgmenu is not already running, jgmenu_run will run the menu - and NOT return the prompt.

If jgmenu is already running (in the background as a long-running application), jgmenu_run will send a magic IPC signal and return the prompt.

Regarding the installation of new apps, I'm wondering if it's the libmenu-cache cache which does something erratic. Could you try it with `csv_cmd=pmenu` and let me know?

Open three terminals, and try it in these steps:

1. Start jgmenu. You should not get the prompt back here.

killall jgmenu
jgmenu_run

2. Install a new app (e.g. leafpad)

sudo apt install leafpad

3. Awake jgmenu - you should get prompt back here

jgmenu_run

If you build+run the master branch and set `verbosity=4` in jgmenurc, you'll see the following in the first terminal when issuing the command in the third terminal:

info: file/dir changed '/usr/share/applications'
info: restarting jgmenu...

Offline

#29 2019-09-23 21:30:17

malm
jgmenu developer
Registered: 2016-10-13
Posts: 508
Website

Re: jgmenu Lithium suggestions and bugfixes

johnraff wrote:

BTW This doesn't mean that unused tags in prepend.csv won't be ignored, but added to the root menu, does it?
https://github.com/johanmalm/jgmenu/blo … nu.c#L1114

No. At L1114 we add any missing ^tag() items to a linked list of 'nodes'.

Only ^checkout() items are shown in the menu.

The following could be reasons for wanting to add ^tag() items without a corresponding ^checkout() menu item:

  • You may with to add a widget which could ^root() or ^checkout() that tag

  • Or you may just want to make some items searchable, but not visible in the main menu (until you search)

The explain the second bullet point, try this.

echo "^tag(hidden)" >>~/.config/jgmenu/append.csv
dmenu_path >>~/.config/jgmenu/append.csv

You can now search for any commands available in dmenu big_smile

Last edited by malm (2019-09-23 21:32:47)

Offline

#30 2019-09-24 00:40:17

hhh
Meep!
Registered: 2015-09-17
Posts: 8,483
Website

Re: jgmenu Lithium suggestions and bugfixes

malm wrote:

2. Install a new app (e.g. leafpad)

sudo apt install leafpad

Try mousepad, leafpad is not in buster...

https://packages.debian.org/search?keywords=leafpad

I'll try tomorrow, it's my birthday and my coworkers wrecked me a bit at happy hour celebrating. tongue

Offline

#31 2019-09-24 04:36:51

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 5,834
Website

Re: jgmenu Lithium suggestions and bugfixes

malm wrote:

If jgmenu is not already running, jgmenu_run will run the menu - and NOT return the prompt.
If jgmenu is already running (in the background as a long-running application), jgmenu_run will send a magic IPC signal and return the prompt.

OK that explains the behaviour I'm seeing.

Regarding the installation of new apps, I'm wondering if it's the libmenu-cache cache which does something erratic. Could you try it with `csv_cmd=pmenu` and let me know?

Setting `csv_cmd=pmenu`  in jgmenurc fixes the dropped-apps issue.

... set `verbosity=4` in jgmenurc, you'll see the following in the first terminal when issuing the command in the third terminal:

info: file/dir changed '/usr/share/applications'
info: restarting jgmenu...

I saw those lines with both lx and pmenu.

info: file/dir changed '/usr/share/applications'
info: restarting jgmenu...
warning: 'at_pointer' is depreciated; use 'position_mode = pointer'
info: 4 xrandr crt controller(s) found
    - monitor-1: x0=0; y0=0; w=1024; h=768
info: using monitor '1'
info: screen:        (0,0,1024,768)
info: _NET_WORKAREA: (0,31,1024,737)
info: _NET_WORKAREA: panel @ 'top'; margin=31
info: margin_y = 31
info: valign has been set
warning: 'at_pointer' is depreciated; use 'position_mode = pointer'
info: got font from jgmenurc
info: set font to 'Sans 10'
info: using monitor '1'

So anyway, a little closer...


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.

Offline

#32 2019-09-24 18:31:15

malm
jgmenu developer
Registered: 2016-10-13
Posts: 508
Website

Re: jgmenu Lithium suggestions and bugfixes

Thanks. That narrows it down:
- The “watching” of files/dirs works.
- libmenu-cache cache is “sticky” (not sure why)

Conclusion:
- Speed up apps module development (fast pmenu replacement)
- Fault find libmenu-cache (lower priority)

Offline

#33 2019-09-24 20:56:16

malm
jgmenu developer
Registered: 2016-10-13
Posts: 508
Website

Re: jgmenu Lithium suggestions and bugfixes

@hhh - Happy Birthday! Hope you had a good one big_smile

Offline

#34 2019-09-25 03:22:25

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 5,834
Website

Re: jgmenu Lithium suggestions and bugfixes

malm wrote:

@hhh - Happy Birthday! Hope you had a good one big_smile

Right!! That too! Sorry I forgot to put it in yesterday.


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.

Offline

#35 2019-09-25 23:17:27

hhh
Meep!
Registered: 2015-09-17
Posts: 8,483
Website

Re: jgmenu Lithium suggestions and bugfixes

It was Birthday 55, and I can't drive 55. Gonna have to reach 56, I guess. When I hit 88 I burst into flaming tire tracks.

Thanks, gentlemen!

Offline

#36 2019-10-02 14:50:42

qcgxr
Member
Registered: 2016-08-31
Posts: 27

Re: jgmenu Lithium suggestions and bugfixes

I think I lost something in the move to jgmenu. New jgmenurc and prepend.csv from skel. Kill jgmenu, run jgmenu_run:

~$ jgmenu_run
info: using monitor '1'
info: got font from jgmenurc
info: set font to 'Sans 10'
info: using monitor '1'
/bin/bash: fatal:: command not found

jgmenu pops up, showing

fatal: 'lx' is not a jgmenu_run command

jgmenu v3.3 on Buster. I have both libmenu-cache3 and lxmenu-data. Am I missing something?

Offline

#37 2019-10-02 18:00:22

malm
jgmenu developer
Registered: 2016-10-13
Posts: 508
Website

Re: jgmenu Lithium suggestions and bugfixes

lx is a module that's optional during the build-stage, so it depends on who has packaged it.

I'm guessing you're probably using the jgmenu from Helium backports? On Helium, we built without lx.

Either install the Lithium jgmenu or set csv_cmd=pmenu in your ~/.config/jgmenu/jgmenurc

Offline

#38 2019-10-02 21:23:47

qcgxr
Member
Registered: 2016-08-31
Posts: 27

Re: jgmenu Lithium suggestions and bugfixes

malm wrote:

lx is a module that's optional during the build-stage, so it depends on who has packaged it.

I'm guessing you're probably using the jgmenu from Helium backports? On Helium, we built without lx.

Either install the Lithium jgmenu or set csv_cmd=pmenu in your ~/.config/jgmenu/jgmenurc

Stupid me. You were right. Moving to the Lithium jgmenu solved things. Thanks!

Offline

#39 2019-10-04 03:26:53

kozimodo
Member
Registered: 2015-10-04
Posts: 47

Re: jgmenu Lithium suggestions and bugfixes

Is there some way to make the "Applications" submenus top level?  E.g., like obmenu-generator's behavior?

Offline

#40 2019-10-04 05:11:36

malm
jgmenu developer
Registered: 2016-10-13
Posts: 508
Website

Re: jgmenu Lithium suggestions and bugfixes

^Yes. What you have described is in fact the default behaviour.

If you delete/move ~/.config/jgmenu/prepend.csv you’ll see what it looks like.

https://jgmenu.github.io/jgmenututorial.7.html#lesson6

Offline

#41 2019-10-04 10:41:17

kozimodo
Member
Registered: 2015-10-04
Posts: 47

Re: jgmenu Lithium suggestions and bugfixes

Thanks for the response!

Is it possible to do a mixture of the two?  That is, instead of having an "Applications" menu entry, have the Applications menu's entries directly in the main panel of the menu?

Offline

#42 2019-10-04 21:19:30

malm
jgmenu developer
Registered: 2016-10-13
Posts: 508
Website

Re: jgmenu Lithium suggestions and bugfixes

^ If you're suggesting that we change the default Lithium prepend.csv, we'd have to have a community discussion around it.

If you want to just do it on your own machine, just remove the following two lines from prepend.csv

Applications,^checkout(lx-apps)
^tag(lx-apps)

You could also try moving all items below "Applications,^checkout(lx-apps)" to append.csv for a more balanced menu.

Let me know if you get stuck and I'll help you work it out.

Offline

#43 2019-10-04 21:39:39

kozimodo
Member
Registered: 2015-10-04
Posts: 47

Re: jgmenu Lithium suggestions and bugfixes

No, not at all.  I'm happy to customize for my own purposes!

So, removing those lines eliminated the applications from the menu altogether.  I'd like them there, but with the application categories in the main menu rather than an "Applications" submenu.

And I like the idea of moving the text following the Applications line to an append.csv file.

Offline

#44 2019-10-04 21:52:58

kozimodo
Member
Registered: 2015-10-04
Posts: 47

Re: jgmenu Lithium suggestions and bugfixes

Actually, deleting and separating worked exactly as I had hoped.

Are there icons available for the prepend and append menu entries?

Offline

#45 2019-10-05 10:42:07

malm
jgmenu developer
Registered: 2016-10-13
Posts: 508
Website

Re: jgmenu Lithium suggestions and bugfixes

^ Glad you got it sorted.

We've not populated the prepend.csv file with icons names. Happy for anyone to have a go.

Offline

#46 2019-10-08 13:44:04

kozimodo
Member
Registered: 2015-10-04
Posts: 47

Re: jgmenu Lithium suggestions and bugfixes

I filled in everything I could figure out: https://pastebin.com/1UV1DhZ6

Offline

#47 2019-10-08 17:07:58

malm
jgmenu developer
Registered: 2016-10-13
Posts: 508
Website

Re: jgmenu Lithium suggestions and bugfixes

@kozimodo

I’ve split it out. Have a look here:

https://github.com/johanmalm/bl-play/tr … hemes/1910

Is that what you were looking for?

Offline

#48 2019-10-08 17:17:31

kozimodo
Member
Registered: 2015-10-04
Posts: 47

Re: jgmenu Lithium suggestions and bugfixes

Yes, I did that as well and it looks great.

I should have given a bit more explanation -- I added icon names for every entry that I could figure out.  The result is in the pastebin.

Offline

#49 Yesterday 19:45:54

malm
jgmenu developer
Registered: 2016-10-13
Posts: 508
Website

Re: jgmenu Lithium suggestions and bugfixes

@kozimodo
Thanks. Sorry for the delay. I've prepared a Pull Request for @johnraff

Offline

#50 Yesterday 20:39:49

misko_2083
Member
Registered: 2016-05-24
Posts: 224

Re: jgmenu Lithium suggestions and bugfixes

@kozimodo yad-icon-browser helps a lot in finding icons.
It's a separate package in Debian.

Offline

Board footer

Powered by FluxBB