|
@@ -26,6 +26,7 @@
|
|
|
|
|
|
#include "IRCAppWindow.h"
|
|
|
#include "IRCClient.h"
|
|
|
+#include <LibCore/StandardPaths.h>
|
|
|
#include <LibGUI/Application.h>
|
|
|
#include <LibGUI/MessageBox.h>
|
|
|
#include <stdio.h>
|
|
@@ -49,6 +50,36 @@ int main(int argc, char** argv)
|
|
|
return 1;
|
|
|
}
|
|
|
|
|
|
+ if (unveil("/tmp/portal/lookup", "rw") < 0) {
|
|
|
+ perror("unveil");
|
|
|
+ return 1;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (unveil("/tmp/portal/notify", "rw") < 0) {
|
|
|
+ perror("unveil");
|
|
|
+ return 1;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (unveil("/etc/passwd", "r") < 0) {
|
|
|
+ perror("unveil");
|
|
|
+ return 1;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (unveil(Core::StandardPaths::home_directory().characters(), "rwc") < 0) {
|
|
|
+ perror("unveil");
|
|
|
+ return 1;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (unveil("/res", "r") < 0) {
|
|
|
+ perror("unveil");
|
|
|
+ return 1;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (unveil(nullptr, nullptr) < 0) {
|
|
|
+ perror("unveil");
|
|
|
+ return 1;
|
|
|
+ }
|
|
|
+
|
|
|
URL url = "";
|
|
|
if (app->args().size() >= 1) {
|
|
|
url = URL::create_with_url_or_path(app->args()[0]);
|