athrvvvv / AppOpener

Python library to open/close applications in windows.
https://appopener.readthedocs.io/en/latest/
MIT License
18 stars 7 forks source link

Whenever I open application it's redirect to document folder inder file explore. #22

Open atulpatle34 opened 1 year ago

atulpatle34 commented 1 year ago

Whenever I open application it's redirect to document folder inder file explore. Sometime it's working properly but if I launch application from file explore so I am facing these. After that Whatever I will do it's not working.

athrvvvv commented 1 year ago

Please Provide some error or some examples so I could understand the Issue more precisely.

Kalyan19111999 commented 6 months ago

@atulpatle34 Could you please elaborate on what you mean by "if I launch application from file explorer" ? Do you mean if you launch the applications manually using file explorer after trying out with the package ? Also if you can share your implementation of the package, that helps.

SionHu commented 4 months ago

Getting the exact same issue here. It was working before, but I reinstalled the app sometime ago, and it will open the Document folder in File Explorer now. The following is the code I had in my script:

from AppOpener import open
open('spo assistant') # this is the name of the application

Also it seems this is only happening to that app. It worked on all the other apps I tested. I am able to find the tag in with mklist function:

"spo assistant": "{7C5A40EF-A0FB-4BFC-874A-C0F2E0B9FA8E}\\SpO2 Assistant V3.1.0.3\\SpO2.exe",
DIY-TECH-HACKER commented 4 months ago

@SionHu @atulpatle34 @athrvvvv @Kalyan19111999 Hey I got a possible solution If you go to the library folder of AppOpener in python there is a folder named Data and there is 3 .json files and if you delete it and then if you go and reinstalled the AppOpener it will resolve the issue it worked for me

The reason why are deleting those 3 .json file is that it will not be deleted when we are uninstalling the Appopener and Appopener will be still using the old data files which may have old broken data in it

try it out and let me know..

Kalyan19111999 commented 3 months ago

Thanks for suggesting @DIY-TECH-HACKER . Maybe @atulpatle34 can try out and get back.

athrvvvv commented 3 months ago

@SionHu @atulpatle34 @Kalyan19111999 @DIY-TECH-HACKER Actually you can even do the same by using the module as below:

from AppOpener import open
open("update") # Fetches all the new applications installed or even fixes broken files

Check it out!