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

Feature Request : Uninstalling #19

Open
ghost opened this issue Jun 5, 2020 · 1 comment
Open

Feature Request : Uninstalling #19

ghost opened this issue Jun 5, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Jun 5, 2020

Please add and document and uninstall option in the RUNME.sh script (option) and README.md (documentation)

@octobanana
Copy link
Owner

I'm not sure adding an uninstall script option is as easy as it sounds.

Currently, the peaclock binary is the only file that gets installed. The binary file can be removed by retrieving its path using which peaclock, followed by its removal using rm /path/to/peaclock.

The config directory is explicitly created by the user in the location of their choice, therefore, I think it should only be explicitly removed be the user.

The best method would be to use a proper distro package manager to handle install and uninstall, such as pacman on Arch Linux. Programs such as stow are also useful for easy uninstalls. The install script could perhaps write to a separate file and store a list of installed files that could then be referenced in an uninstall script. Although, the file would have to exist somewhere on the system until needed, and there's no guarentee that the stored paths haven't changed.

While I currently think the lifetime of a program is a job best left for a package manager, I'm open to any ideas or implementation suggestions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant