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

Document how to uninstall (i.e. "remove") shortcuts #236

Open
2 tasks done
jypeter opened this issue Jul 31, 2024 · 1 comment
Open
2 tasks done

Document how to uninstall (i.e. "remove") shortcuts #236

jypeter opened this issue Jul 31, 2024 · 1 comment
Labels
type::documentation request for improved documentation

Comments

@jypeter
Copy link

jypeter commented Jul 31, 2024

Checklist

  • I added a descriptive title
  • I searched open reports and couldn't find a duplicate

What happened?

It took me some time to find out how to uninstall shortcuts without having to manually remove them from C:\Users\my_login\AppData\Roaming\Microsoft\Windows\Start Menu\Programs, on Windows

I created a json file with the turtle Minimal example and I successfully installed the shortcuts using $ python -c "from menuinst.api import install; install('./turtle.json')", as described in Usage

I then tried to uninstall this but

  • I did not find anything useful when looking for uninstall
  • I found by chance that all I had to do was just use: $ python -c "from menuinst.api import remove; remove('./turtle.json')"
  • I did not find anything useful when looking for remove
  • It is not completely intuitive to use remove and not uninstall, when you have installed with install

This can probably be added very easily to the documentation

It would also be useful to be able to remove a menu by just giving the menu name (instead of the json file that you may have lost), but I understand it would not be very safe, on probably would not remove the shortcuts on the desktop

Additional Context

No response

@jypeter jypeter added the type::documentation request for improved documentation label Jul 31, 2024
@github-project-automation github-project-automation bot moved this to 🆕 New in 🧭 Planning Jul 31, 2024
@jypeter
Copy link
Author

jypeter commented Aug 9, 2024

It is also useful (for understanding a bit how menuinst works, and for debugging purpose) to display the paths of the generated/removed links

You could kill 2 birds with one stone by adding a Verbose Usage section with an example at the end of the Getting started page. Or something similar. Or put this in a FAQ

The example below installs and then removes the turtle minimal example

(base) PS C:\Users\jypeter\menuinst_test> python -c "from menuinst.api import install, remove; import pprint; pth_list = install('./turtle_original.json'); pprint.pprint(pth_list)"
[WindowsPath('C:/Users/jypeter/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Python N.A'),
 WindowsPath('C:/Users/jypeter/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Python N.A/Launch Turtle.lnk'),
 WindowsPath('C:/Users/jypeter/Desktop/Launch Turtle.lnk'),
 WindowsPath('C:/Users/jypeter/AppData/Roaming/Microsoft/Internet Explorer/Quick Launch/Launch Turtle.lnk'),
 WindowsPath('C:/Utils/miniconda3_2024-03/Menu/Launch Turtle.bat')]

(base) PS C:\Users\jypeter\menuinst_test> python -c "from menuinst.api import install, remove; import pprint; pth_list = remove('./turtle_original.json'); pprint.pprint(pth_list)"
[WindowsPath('C:/Users/jypeter/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Python N.A/Launch Turtle.lnk'),
 WindowsPath('C:/Users/jypeter/Desktop/Launch Turtle.lnk'),
 WindowsPath('C:/Users/jypeter/AppData/Roaming/Microsoft/Internet Explorer/Quick Launch/Launch Turtle.lnk'),
 WindowsPath('C:/Utils/miniconda3_2024-03/Menu/Launch Turtle.bat'),
 WindowsPath('C:/Users/jypeter/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Python N.A')]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::documentation request for improved documentation
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant