[rfc] added preprocessing to rust launchers

Alex Kashchenko akashche at redhat.com
Fri Dec 8 13:30:17 UTC 2017


Hi,

On 12/08/2017 01:17 PM, Jiri Vanek wrote:
> On 12/08/2017 11:21 AM, Jiri Vanek wrote:
>> On 12/06/2017 07:46 PM, Alex Kashchenko wrote:
>>> On 12/06/2017 02:50 PM, Jiri Vanek wrote:
>>>> Hello!
>>>>
>>>> Thanx for feedback. I had week long personal battle whether to have 
>>>> it preprocessed with some solid defaults, or to use config file. It 
>>>> ehnded 51:49 for preprocess. No it is 99:1 for config file:)
>>>>
>>>> What location do you suggest?
>>>
>>> The same directory, where launcher binary is, will be the most 
>>> convenient. So it can be read with: executable_directory() + 
>>> "/conf_file_name".
>>
>> But that is no way with linux fs conventions for distribution packages.
>>
>> So the fall back will need to stay in place
>>
>> 1)xdg_confidir/icedtea-web/conf_file_name
>> 2)executable_directory() + :/conf_file_name".
> 
> hmm. that is user specific:(
> 
> So /etc/java/icedtea-web will need to be there to...
>> Anything more?
>>
>> where conf_file_name I would vote for .itw_default_paths
>>
>> And the file should be read only :)

I suggest using fixed FHS-friendly path on linux and relative-fixed (to 
executable) path on windows.

Alternatively it may be easier to preprocess "config.rs" (containing 
only constants) and compile it into executable.

>>
>> Thanx for thoughts!
>>    J.
>>
>> [...]
>>

-- 
-Alex


More information about the distro-pkg-dev mailing list