You are not logged in.
It should work. I'm on lithium and have just installed gimp from the pipemenu and jgmenu re-loaded.
Just to clarify - it only check for changes when it's launched (e.g. by a panel button or a keyboard shortcut running jgmenu_run). If you're sat there with jgmenu open, whilst gimp is being installed in the background, it won't know about it.
That's it then. I installed gimp via a terminal with apt, not from the pipemenu, so I had to run jgmenu init as jgmenu_run was still... running. :monkey:
So, 2 scenarios, only one is automatically covered ATM. That's fine, we have forum support for these things.
I don't care what you do at home. Would you care to explain?
Offline
I installed gimp via a terminal with apt, not from the pipemenu, so I had to run jgmenu init as jgmenu_run was still... running. :monkey:
1) Installing from the pipemenu is the same as installing in a terminal, but...
2) This might be it: jgmenu_run should return the prompt immediately, and up to now it did, but in the current version it does not. That's the issue I was trying to remember to post about, but kept forgetting. It might be the cause of the app menu failing to refresh immediately.
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
Nice, run with that and see what you can see.
I don't care what you do at home. Would you care to explain?
Offline
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.
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.
@malm?
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
@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
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
Last edited by malm (2019-09-23 21:32:47)
Offline
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.
I don't care what you do at home. Would you care to explain?
Offline
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...
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
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
@hhh - Happy Birthday! Hope you had a good one
Offline
@hhh - Happy Birthday! Hope you had a good one
Right!! That too! Sorry I forgot to put it in yesterday.
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
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!
I don't care what you do at home. Would you care to explain?
Offline
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
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
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
Is there some way to make the "Applications" submenus top level? E.g., like obmenu-generator's behavior?
Online
^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.
Offline
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?
Online
^ 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
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.
Online