brpaz / ulauncher-file-search

Quick Search files and directories from Ulauncher
MIT License
72 stars 34 forks source link

Using keyword conditions is not safe since users can rename them. #4

Closed friday closed 5 years ago

friday commented 5 years ago

Since users can change keywords, conditions based on them (ex if keyword == "ff") is not safe. The condition should be based on the keyword id for it to be safe. There's currently no nice way to get it from an extension (https://github.com/Ulauncher/Ulauncher/issues/284).

In the meanwhile you have to handle this in any extension using multiple keywords. See example: https://github.com/friday/ulauncher-hash2/blob/master/main.py#L18-L23