mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:07:45 +00:00
LibCore+LibIPC: Recognise %uid in path
This patch allows to insert "%uid" in `IPC_CLIENT_CONNECTION` declaration and in SystemServer's ini files. This pattern is replaced then replaced by the UID of the owner of the service. It opens a path for seamlessly managed, per-user portal.
This commit is contained in:
parent
c5b7c9f479
commit
1b36348d8b
21 changed files with 33 additions and 21 deletions
|
@ -15,7 +15,7 @@
|
|||
#define LANGUAGE_CLIENT(language_name_, socket_name) \
|
||||
namespace language_name_ { \
|
||||
class ConnectionToServer final : public HackStudio::ConnectionToServer { \
|
||||
IPC_CLIENT_CONNECTION(ConnectionToServer, "/tmp/portal/language/" #socket_name) \
|
||||
IPC_CLIENT_CONNECTION(ConnectionToServer, "/tmp/portal/language/" socket_name) \
|
||||
public: \
|
||||
static char const* language_name() { return #language_name_; } \
|
||||
\
|
||||
|
@ -29,8 +29,8 @@
|
|||
|
||||
namespace LanguageClients {
|
||||
|
||||
LANGUAGE_CLIENT(Cpp, cpp)
|
||||
LANGUAGE_CLIENT(Shell, shell)
|
||||
LANGUAGE_CLIENT(Cpp, "cpp"sv)
|
||||
LANGUAGE_CLIENT(Shell, "shell"sv)
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue