[Kimchi-devel] [PATCH] [WoK] Asynchronous UI notification implementation
Daniel Henrique Barboza
dhbarboza82 at gmail.com
Mon Feb 27 21:30:19 UTC 2017
On 02/27/2017 06:18 PM, Lucio Correia wrote:
> On 27/02/2017 18:12, Daniel Henrique Barboza wrote:
>>>>> +BASE_DIRECTORY = '/run'
>>>> Suggestion to use:
>>>> os.path.join('/run/user', str(os.getuid()))
>>>> in order tests may be run with root.
>>
>> I would prefer to choose a path that can be written by anyone else to
>> allow the push_server
>> to be started without root.
>
> Sorry, I meant *without* root.
> /run/user/<UID> allows for that, it's writable by the user that
> started wokd, be it root or not.
>
This change would require further UI changes to allow the /config API
(or other) to inform
the UI of the current websocket URL. This will not solve the problems
I've seen with the unit tests
though - multiple instances of the push_server will not be possible and
the unit tests will
break.
We need to discuss an alternative where:
- any user can start the push_server, as you require
- if we're to allow the push_server to be run in test_mode*, we need to
think in a way of
generating random paths that can be written by any user as well. You are
working closely
in Debian changes. What system dir can be used that can be written by
any user and,
preferably, exists in RPM distros too?
Daniel
More information about the Kimchi-devel
mailing list