moudey / Shell

Powerful context menu manager for Windows File Explorer
https://nilesoft.org
MIT License
3.35k stars 113 forks source link

Blank context menu inside TreeSize Free #390

Closed iamkyaru closed 8 months ago

iamkyaru commented 8 months ago

In TreeSize Free, using rightclick for opening the context menu is not working as supposed to. A blank context menu appears, that is still clickable, though blank.

What I already tried is to exclude it in the configuration file shell.nss, which for me looks like this:

settings
{
        // *SNIP*
    exclude.where = !process.is_explorer and (str.start(window.title, 'TeraCopy') or str.start(window.title, 'TreeSize'))
    // *SNIP*
}

Though it didn't work as I expected it to work. I kept the config with the default settings, except for the key exclude.where inside the settings section.

moudey commented 8 months ago

Try with process.name or process.path

exclude.where = str.start(window.title, 'TeraCopy') or str.start(process.name,"TreeSize")
iamkyaru commented 8 months ago

Try with process.name or process.path

exclude.where = str.start(window.title, 'TeraCopy') or str.start(process.name,"TreeSize")

This actually worked! I appreciate your quick response to my issue.

RubicBG commented 8 months ago

I don't use TreeSize and have no way to check: if this syntax works alone: exclude.where = !process.is_explorer and str.start(process.name, "TreeSize")

PS: the case with TeraCopy: if !process.is_explorer is removed when you are in a folder in explorer and the name of this folder starts with TeraCopy (not that anyone names their folders to start with TeraCopy :) ) - it will also not have NS image

iamkyaru commented 8 months ago

Maybe then it's better to check the process for TeraCopy too, right. Thank you for the info. 😄