Skip to content
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

icons #24

Closed
ncmprhnsbl opened this issue Sep 8, 2024 · 4 comments
Closed

icons #24

ncmprhnsbl opened this issue Sep 8, 2024 · 4 comments

Comments

@ncmprhnsbl
Copy link

i notice that labwc-menu-generator includes icons in it's output (since i've taken to using it with openbox).
is this an intentional inclusion? because i see that menu icons is currently out of scope for labwc, so whether they're present in the output is irrelevant there.
i suppose where i'm going with this, is to request(or suggest) an option to exclude icons (or include).

@johanmalm
Copy link
Collaborator

Thanks for writing.

We include the icon name because we parse the desktop file anyway, so it's got virtually no overhead. I use those icon names in another personal project, so find it handy to have them.

IIRC openbox actually needs the full path (e.g. /usr/share/icons/Papirus/whatever/foo.png). We currently don't support finding icons against theme and size, but it would be quite straight forward to add.
Would probably just bundle https://gitlab.freedesktop.org/vyivel/libsfdo with it.
Is that what you're looking for?

@ncmprhnsbl
Copy link
Author

ncmprhnsbl commented Sep 12, 2024

IIRC openbox actually needs the full path

yes, this is correct and the only reason i was seeing any icons in openbox was because of the rare cases of *.desktops including the full path.

Is that what you're looking for?

not me, my preference is no icons :)
up to you of course, but i wouldn't bother unless you intend to enable icons in labwc's menu (and in that case that it be optional).

my first workaround for this was to pipe the output through sed: sed '/icon=".\+"/ s///g' (pretty silly)
then, after looking at the source, i saw that it's a simple matter to remove the icon parts.
i made a fork with a 'no-icon' branch for anybody who's interested : now deleted

@johanmalm
Copy link
Collaborator

Fixed by #25

@ncmprhnsbl
Copy link
Author

nice :) thanks
deleted my now redundant fork.

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

No branches or pull requests

2 participants