iMA-Menu icon indicating copy to clipboard operation
iMA-Menu copied to clipboard

Taskbar context menu doesn't properly trigger python script

Open FreshSoftware4 opened this issue 8 months ago • 2 comments

I wasn't able to get the taskbar context menu to open up settings. However, what I was able to do was look into the taskbar.nss file and find out which file it was intended to trigger, and run it manually. When run manually it worked perfectly fine, but in my experience it does not trigger via the taskbar at all.

FreshSoftware4 avatar Mar 12 '25 14:03 FreshSoftware4

Do you have another version of python installed? This issue happens when it tries to launch the script via another version of python that does not have the needed liberaries. Try changing the default python by right clicking any .pyw file in "script" folder, then open with (or shift + right-click) then open with > and if 2 pythons are listed then select the second.

iMAboud avatar Mar 13 '25 02:03 iMAboud

@iMAboud It was using the version installed by the menu, because it was placed before my main python program in priority when my computer decides which to use, and this itself has been the source of many unrelated problems until I discovered that it was because of IMA-Menu, after which I promptly uninstalled the version I had in my program files (I had already long since copied that anyway and moved it to my user files so I could edit .nss files without needing to elevate my text editor) and viola my primary version of python now works.

I have a few issues with IMA-Menu and I will list them out before I continue:

  • The 'portable' in the name is misleading - it creates the expectation that this is not an installer, so it should not be an installer ideally. This app, however, is.
  • Since it is an installer, it may as well also check for python and install the latest version if it isn't present, and if it is, ensure that the proper libraries are present and if they are not, install them. That way no conflicts are created and I can get my python script to work properly without default-packaged libraries being mysteriously missing.
  • It doesn't really need an installer for the whole app, all things considered. All there would really have to be is an installer file included with all the other app files in a zip file which makes sure all dependencies are present when it is run, and installs anything that isn't located.

Anyway, it's off the table for me to have a separate instance of python, and setting it to default is especially off the table. It would help most if you could simply list all of the proper libraries I need in order to run the script properly, so I can install them directly.

FreshSoftware4 avatar Mar 14 '25 16:03 FreshSoftware4