Forums » Linux
executable location
Perhaps this is just because this is a beta but the installer places the files in the users home directory, I would like to see the changed to /usr/local/games like many of the other games are doing. I understand that a symlink works but this would eliminate the need for that, just a suggestion.
Yeah, I would like to see that too.
Start the install script as user. Inside the script you step over to root with su and install everything to /usr/local/games.
In /usr/local/bin you put a script that checks for $HOME/.vendetta and moves user specific stuff over to it when it doesn't exist.
While writing I thought about one big problem. What about updates. You would have to be root again.
Maybe this is the only good sollution.
Start the install script as user. Inside the script you step over to root with su and install everything to /usr/local/games.
In /usr/local/bin you put a script that checks for $HOME/.vendetta and moves user specific stuff over to it when it doesn't exist.
While writing I thought about one big problem. What about updates. You would have to be root again.
Maybe this is the only good sollution.
I was a bit surprised to see it wouldn't attempt to install globally when the install script is run as root; most similar things I've dealt with installed to local home when run as a user, and installed globally if run as root.
Then, when it comes down to patching, if you run it as a user and it's installed globally and a patch is necessary -and- you do not have write permissions to its location, it could either a) request a root PW to SU, or b) bomb out and tell you to run the patcher as root.
Of course, that's just what would be nice. For now, installing to home is okay. There's more important issues pending. :)
Then, when it comes down to patching, if you run it as a user and it's installed globally and a patch is necessary -and- you do not have write permissions to its location, it could either a) request a root PW to SU, or b) bomb out and tell you to run the patcher as root.
Of course, that's just what would be nice. For now, installing to home is okay. There's more important issues pending. :)
Yep. Ordinarily I wouldn't even think about doing the crazy thing I do now (installing all 100 megs to a ~/.dotfile directory) but updates are a big problem. I have to admit I never considered asking for a root password before applying patches to get around this. Alternatively I could download it to /usr/games/blah with rw permission on the 'games' group and force users to become part of that group. Or make the installer/updater more flexible so your distro can dictate that sort of thing. I don't know. I'm open to suggestions.
Setting an user in the games group and making /usr/local/games/vendetta (root games drwxrwxr-x) would work. It's not clean tough and maybe the user should get an option during install. Either do it like this or ask for the root password everytime.
For users who don't know a thing about permissions and don't know how to add an user to the games group the "ask for root" password should be default I think.
But it should always be /usr/local/games and not /usr/games.
For users who don't know a thing about permissions and don't know how to add an user to the games group the "ask for root" password should be default I think.
But it should always be /usr/local/games and not /usr/games.