Skip to content

Add contrib/example-dynamic-root-menu.sh #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 8, 2025

Conversation

johanmalm
Copy link
Collaborator

...because such menus are supported with the released of labwc 0.8.3

It shows how a simple wrapper can be written around labwc-menu-generator to add some menu entires before and after the generated directories and .desktop entries.

<action name="Execute"><command>firefox</command></action>
</item>
<item label="Terminal">
<action name="Execute" command="foot" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose this could be

<action name="Execute" command="'"$terminal"'" />

(That is command=" ' " $terminal " ' " />)

@Consolatis
Copy link
Member

Minor nitpick above, other than that LGTM

...because such menus are supported with the released of labwc 0.8.3

It shows how a simple wrapper can be written around labwc-menu-generator
to add some menu entires before and after the generated directories and
.desktop entries.
@johanmalm johanmalm force-pushed the example-dynamic-root-menu branch from 995cce5 to 0ee8030 Compare March 8, 2025 13:51
@johanmalm
Copy link
Collaborator Author

@Consolatis - thanks for suggestion. Very good idea 😄 Have incorporated.

@johanmalm johanmalm merged commit f1aa43d into master Mar 8, 2025
3 checks passed
@johanmalm johanmalm deleted the example-dynamic-root-menu branch March 8, 2025 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants