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

ShowIfTrue feature would be nice! #46

Open
flow-c opened this issue Jun 16, 2023 · 2 comments
Open

ShowIfTrue feature would be nice! #46

flow-c opened this issue Jun 16, 2023 · 2 comments

Comments

@flow-c
Copy link

flow-c commented Jun 16, 2023

First, this is great replacement for the old nautilus-actions package. Thanks!

The only feature that I miss from the old days is the ShowIfTrue condition that let you specify a command whose output would determine whether to show an action or not.

For example I had an Eject action to detach mounted filesystems defined by

Exec=umount %f
ShowIfTrue=sed -z 's/.*\\s%f\\>.*/true/' /etc/mtab

This would add even more flexibility on top of mime, file type and path pattern conditions.

@flow-c
Copy link
Author

flow-c commented Jun 16, 2023

I've just discovered that this is already a TO-DO:
https://github.com/bassmanitram/actions-for-nautilus/blob/main/TO-DO.md

Never mind :)

@bassmanitram
Copy link
Owner

bassmanitram commented Jun 16, 2023 via email

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