Closed tsujan closed 5 months ago
First of all a newly added fancy menu uses alreadylxqt-applications.menu
as XDG_MENU_PREFIX=lxqt-
is set in startlxqt
script (and in my startlxqtlabwc
script too).
But I disagree with usinglxqt-applications.menu
as this results in a catchall under "Preferences" with both LXQt settings and all other settings alphabetically ordered. Using lxqt-applications-compact.menu
results in same layout as in main menu with "Preferences" and "LXQt Settings".
If this is possible in the code better, it could be set in defaultpanel.conf
but this will affect only fresh installs/users. @gfgit opinions?
I'd like to add also a new lxqt-applications-fancy.menu
which displays only categories.
... DG_MENU_PREFIX=lxqt- is set in startlxqt...
OK, that explains why my menu was different by default under labwc. I'll choose lxqt-applications.menu
in the config dialog.
And I'll have no problem with any decision that might be made about which file menu should be used. Closing this....
II didn't look at the code first, but this could well be used to set the menu file precisely:
static constexpr const QLatin1String LXQtMenuFile("lxqt-applications-compact.menu");
I tried this with lxqt-applications-compact.menu
but it loads for both new and existing (overwriting custom menu settings) fancymenus the applications.menu
now, same if unchanged.
I tried this with...
Ignore it. My mistake was that, since I launch LXQt without lxqt-session
under labwc (which is not recommended), I hadn't taken XDG_MENU_PREFIX
into account — as you correctly mentioned in your first comment.
BTW, and totally unrelated to this:
Don't we want an "About LXQt" button as well as the user's name on Fancy Menu?
Don't we want an "About LXQt" button as well as the user's name on Fancy Menu?
User's name I'm not so sure, but about would stay fine IMO. Actually on debian wth LXQt 1.3 so I don't remember where "about" ended up. A button on the opposite side?
I tried this with...
Ignore it. My mistake was that, since I launch LXQt without
lxqt-session
under labwc (which is not recommended), I hadn't takenXDG_MENU_PREFIX
into account — as you correctly mentioned in your first comment.
The point is that this PR doesn't work if compiled. I'd like to use it eventually for setting the "compact" menu.
Hm, it looks like about.desktop isn't present and will not show up in the search in all menus.
A button on the opposite side?
I agree.
it looks like about.desktop isn't present and will not show up in the search in all menus.
In Main Menu, an exception was made for it for it and it was added below "categories". But In Fancy Menu, I think a button on the opposite side is the best option, especially because it doesn't take an extra space.
The point is that this PR doesn't work if compiled.
Don't expect more from an incorrect patch ;)
At the end the default menu file isn't bad, with the lines visible.
At the end the default menu file isn't bad, with the lines visible.
I like it, perhaps, because I've got used to it in Main Menu.
Although the base name of the default menu file of
XdgMenu
isapplications.menu
(which may be good forlibqtxdg
), here we should use LXQt menu file by default, not an alien file.