https://github.com/alinuxperson/startuppy
A cross platform way of adding items to startup.
https://github.com/alinuxperson/startuppy
Last synced: 2 months ago
JSON representation
A cross platform way of adding items to startup.
- Host: GitHub
- URL: https://github.com/alinuxperson/startuppy
- Owner: ALinuxPerson
- License: gpl-3.0
- Created: 2020-06-04T09:39:26.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-05T13:37:33.000Z (almost 5 years ago)
- Last Synced: 2025-01-22T18:36:16.819Z (4 months ago)
- Language: Python
- Size: 44.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# startuppy
Startuppy is a Python script and library that implements a cross platform way of adding commands to startup.
## Installation
Use the package manager [pip](https://pip.pypa.io/en/stable/) to install startuppy.
Note that you need to install startuppy as root because you need the root user needs
access to the startuppy module because adding or removing commands from startup requires
root privileges.Unix-based distros:
```bash
sudo pip install startuppy
```Windows:
1. run `cmd.exe` or `powershell.exe` as Administrator.
2. Input this:```bash
pip install startuppy
```## Usage
### Library
```python
import startuppycommand: str = "/usr/bin/ls" # insert your command here
startup: startuppy.Startup = startuppy.Startup(command)# to add things to startup
startup.add()# to remove things (created by startuppy) from startup
startup.remove()```
### Script
```bash
startuppy --add /usr/bin/ls # to add things to startupstartuppy --remove /usr/bin/ls # To remove things (created by startuppy) from startup
```## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.
## License
[GNU GPLv3](https://choosealicense.com/licenses/gpl-3.0/)