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

Uninstaller? #483

Closed
Apacelus opened this issue Jun 5, 2022 · 4 comments
Closed

Uninstaller? #483

Apacelus opened this issue Jun 5, 2022 · 4 comments

Comments

@Apacelus
Copy link

Apacelus commented Jun 5, 2022

Is there an uninstaller script somewhere?

@frostworx
Copy link
Collaborator

Distributions which maintain a package, of course, can simply use their package management, but no, there is no uninstall option in the Makefile currently.

@sonic2kk
Copy link
Owner

sonic2kk commented Jun 6, 2022

Not all Makefiles (very few in my experience) have an uninstall block. However, would a manual uninstall process work? I imagine something like this is what would go in a Makefile uninstall block but I have no experience with those 😅

sudo rm -rf /usr/bin/steamtinkerlaunch  # Remove STL program
sudo rm -rf /usr/share/steamtinkerlaunch/*  # Remove STL files (translations etc)
sudo rm -rf /usr/share/doc/steamtinkerlaunch/*  # Remove STL readme
sudo rm -rf /usr/share/applications/steamtinkerlaunch.desktop  # Remove STL .desktop file (shortcut in application launchers e.g. GNOME Dashboard or KDE Kickoff)
sudo rm -rf /usr/share/icons/hicolor/scalable/apps/steamtinkerlaunch.svg  # Removes STL icon
sudo rm -rf /dev/shm/steamtinkerlaunch/*  # Remove remaining STL files, almost certainly unnecessary but can make for a clean uninstall/reinstall scenario :)

I got these paths from following the installation steps in the Makefile and verifying them on my own system, but I recommend checking the exact paths and writing the commands out yourself to make sure you don't mess anything up - Escalated remove commands can be scary! I also didn't test this myself but this should be the gist of uninstalling (I hope).

@frostworx
Copy link
Collaborator

basically you're right, but I'd prefer to not "hardcode" sudo, as the users should know what they are doing and what the makefile does as well. uninstall blocks, if they even exist as you already pointed out, often do not work correctly as nobody, including the authors do not really maintain them. The reason is probably that they are usually not required, because un-installing packages system-conform is mainly the job of package management packages.
Installing any program manually IMHO always should be the last resort. It can be dangerous, files might be left behind in the system, updating the program can be complicated and so on. So contributing and maintaining packages to the own distribution
always is the better choice and helps the community as well apparently.

@frostworx
Copy link
Collaborator

Closing here, but you're invited to reopen any time if you think this needs further discussion.

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

3 participants