-
Notifications
You must be signed in to change notification settings - Fork 6
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
Proposals for global installation #2
Comments
Hi Firef0x, thanks for your interest in gdcl and adding it to Arch User Repository! 😄 I think it's a great idea and agree that the executable name would be better shortened. (I had originally thought about calling it gdcv, but then decided that it would be better to leave that name in case the Goldendict folks decide to make an official version. 😃 ) But I totally agree that the config options should be separated out into their own file. I had been thinking about using a yaml file for this (in the same directory as the executable), but if it's going to be installable/upgradable of course we want to avoid it being overwritten every time there is an upgrade, so either something in home or To avoid cluttering up the user's home directory, something like |
Keeping this issue open until proper config files are set up |
Hello, @dohliam ! Glad to see that the executables is renamed. 😀 I've updated the install script accordingly. However, I decided to install It's a good practice to obey the XDG Base Directory Specification, putting the YAML file in a subdirectory of Yours sincerely! 🙇 |
Fixed as of 79a9853 |
Hello, @dohliam ! Many thanks! However, it's not appropriate to install something in user's home directory by package manager. Since package manager serves as a global manager, not just for a specific user. It's a better way to install the config file into I propose that Do you agree with me? Hope for your reply! Yours sincerely! 🙇 |
Hi Firef0x, thanks for the feedback. If I'm understanding you correctly, we could have the script read the So the priority for config.yml would be:
Would that work for you? Let me know and I'll make the changes ASAP. |
Hello, @dohliam ! Yes, exactly! The priority is correct and this is the way most of the programs in Linux work in. However, I have a question. Do I have to include all options in :default_group: "en" Hope for your reply! Yours sincerely! |
8f77596 should resolve this issue. When run for the first time, the script looks for config.yml in the user home, $XDG_CONFIG_DIRS, and the script executable folder itself (in that order). If it can't find the file in |
I think you misunderstand me. Package manager would not overwrite |
Sorry about that! I've corrected this now -- let me know if it's ok. |
I think it's OK. 👌 I'll tell you if I have further question. 😃 BTW, I have updated the |
Great, thanks! 👍 Sure, go ahead -- you're welcome to make any changes you see fit 😄 Your contribution is much appreciated! |
@Firef0x It seems the AUR package no longer exists or has been removed. The Arch package is also not available in this repo. Could you take a look and update the link if possible? |
Hello, @dohliam !
Appreciate your great work! 🌹 I want to submit this program in Arch User Repository so that
Arch Linux
users could install it easily with package manager. I've already written the install script, and have some proposals for global installation. The install script can be found in https://build.opensuse.org/package/show/home:firef0x/gdcl .First, would you please shorten the name of the executable? It is
lookup.rb
andgroup.rb
now, slightly long. sdcv just names its executable 4 letter long and so does ydcv. I suggest to change the name oflookup.rb
togdcl
, andgroup.rb
togdcg
.Second, there are a number of configuration options at the beginning of the scripts now. If the scripts are installed into
/usr/bin
, the options would be overwritten after an upgrade by package manager. I think it's better to separate the options from the scripts and group them into a conf file in/etc
or~
. The file in/etc
or~
wouldn't be overwritten after an upgrade by package manager. Since most of the program in Linux works in that way, I think it worth a shot.Do you agree with me? 😅 Hope for your reply!
Yours sincerely! 🙇
The text was updated successfully, but these errors were encountered: