Comments (3)
@maphew make_shortcut
could return the full paths. For now, you could do:
scut = make_shortcut(scriptcmd, name="Script Name", icon=iconpath)
targets = [os.path.join(f, scut.target) for f in (scut.desktop, scut.start_menu)]
For programmatically deleting shortcuts, I suppose pyshortcuts could keep a file (say in $HOME/.config/pyshortcuts.created_links
) that records where shortcuts are made so that it can also have a method to clean these out. Sort of like Windows "Add/Remove Programs".
I can definitely see how "Remove App" could be important. At least, it gives the user the choice to clean up unused (or flaky or conflicting) versions of Apps. I'm less sure about "Remove Shortcuts".
That is, I guess I view the shortcuts as handy placeholders for running apps that the user can alter or delete. I think a lot of people find them annoying and/or carefully manage what is on their desktop, start menu, taskbar, Dock, etc so the Apps they need most are easily found by them.
Still, I can see that it could be useful to be able to try to clean up what was installed. That almost seems like it would have to be part of pip/setuptools or conda or whatever package manager was used.
from pyshortcuts.
Thanks for the list comprehension alternate. Agreed that remove app is better than remove shortcut and that the proper place for all this is a package manager. They're not there yet! Thinking about it more. Remove shortcut fits my sense of symmetry but is probably not all that useful in the real world. People are going to conda or pip remove thing and only later "oh yeah, the shortctuts too", at which time it will be too late for this.
from pyshortcuts.
I'm closing this as not needed sufficiently enough to warrant the work (and maintenance). The stub is here if anyone wants to re-open and run with it.
from pyshortcuts.
Related Issues (20)
- cannot bring up pyshortcut GUI form HOT 3
- is there a way to set working directory? HOT 2
- please clarify instructions to create icon to app, or better, automate it HOT 6
- Windows `ENVRUNNER` issue HOT 4
- Only one '.' allowed in shortcut name HOT 3
- New PyPI release?
- Relative path for shortcut target HOT 3
- Add run as admin argument for windows HOT 9
- pyshortcuts-1.8.2 on pypi has indentations errors in pyshortcuts.base HOT 2
- Remove shortcut HOT 1
- option to enable "-m" argument HOT 6
- Multiple icon resolution support (Windows) HOT 6
- Issues with shortcuts on Linux HOT 10
- default shell in MacOS HOT 5
- export PYTHONEXECUTABLE does not always end with bin/python HOT 1
- condabin HOT 4
- Space in path HOT 1
- Run from virtualenv HOT 1
- Shortcuts when clicked disappear from Dock and not working for M1/M2 Mac Machines HOT 4
- MAC Shorcut doesn't work HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyshortcuts.