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

How to add icons to specific new commands? #28

Open
hamad12a opened this issue Nov 1, 2022 · 5 comments
Open

How to add icons to specific new commands? #28

hamad12a opened this issue Nov 1, 2022 · 5 comments
Labels
suggestion A suggestion from a user

Comments

@hamad12a
Copy link

hamad12a commented Nov 1, 2022

I commonly use this extension for VS Code; it would be better if I see the editor's icon in the context menu.

@bassmanitram
Copy link
Owner

Firstly thanks for using this and for this suggestion. I have been thinking about this myself and will put it on the roadmap as a priority item. I'll report progress via this issue.

@bassmanitram bassmanitram added the suggestion A suggestion from a user label Nov 1, 2022
@bassmanitram
Copy link
Owner

bassmanitram commented Nov 4, 2022

Unfortunately, it APPEARS that while icon is an allowable argument to the Nautilus.MenuItem constructor and an accessible property of the resulting instance, it is currently ignored. This nautilus-python issue, while created 3 years ago, appears to confirm that in a comment by the maintainer from only two months ago. See the source link that Jan provides in his comment.

On looking at a full context menu in Nautilus I note that there are no icons displayed even for entries not associated with A4N. Can you confirm that in your installation? If you do see non-A4N icons, what version of Nautilus are you using?

@hamad12a
Copy link
Author

hamad12a commented Nov 4, 2022

GNOME nautilus 42.2
I do see VS Code icon in the context menu for the files; after setting VS Code mime-types for json, plain-text, cpp, etc., however, the context menu of the folders does not show open in VS Code; any directory is type inode/directory but Nautilus does not allow associating for folders a default application such as VS Code (if not tell correct me). That's why I came here

@hamad12a
Copy link
Author

hamad12a commented Nov 4, 2022

It might be necessary to hack the source code of Nautilus and build it from scratch

@bassmanitram
Copy link
Owner

Um - yeah - knock yourself out :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
suggestion A suggestion from a user
Projects
None yet
Development

No branches or pull requests

2 participants