aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--RELNOTES1
-rw-r--r--src/firecfg/main.c20
2 files changed, 21 insertions, 0 deletions
diff --git a/RELNOTES b/RELNOTES
index 0e61019d9..e0461346e 100644
--- a/RELNOTES
+++ b/RELNOTES
@@ -13,6 +13,7 @@ firejail (0.9.49) baseline; urgency=low
13 * enhancement: support for newer Xpra versions (2.1+) - 13 * enhancement: support for newer Xpra versions (2.1+) -
14 set "xpra-attach yes" in /etc/firejail/firejail.config 14 set "xpra-attach yes" in /etc/firejail/firejail.config
15 * enhancement: all profiles use a standard layout style 15 * enhancement: all profiles use a standard layout style
16 * enhancement: create /usr/local for firecfg if the directory doesn't exist
16 * new profiles: curl, mplayer2, SMPlayer, Calibre, ebook-viewer, KWrite, 17 * new profiles: curl, mplayer2, SMPlayer, Calibre, ebook-viewer, KWrite,
17 * new profiles: Geary, Liferea, peek, silentarmy, IntelliJ IDEA, 18 * new profiles: Geary, Liferea, peek, silentarmy, IntelliJ IDEA,
18 * new profiles: Android Studio, electron, riot-web, Extreme Tux Racer, 19 * new profiles: Android Studio, electron, riot-web, Extreme Tux Racer,
diff --git a/src/firecfg/main.c b/src/firecfg/main.c
index 8e5b5e6fa..1ecfbf524 100644
--- a/src/firecfg/main.c
+++ b/src/firecfg/main.c
@@ -579,6 +579,26 @@ int main(int argc, char **argv) {
579 fprintf(stderr, "The proper way to run this command is \"sudo firecfg\".\n"); 579 fprintf(stderr, "The proper way to run this command is \"sudo firecfg\".\n");
580 return 1; 580 return 1;
581 } 581 }
582 else {
583 // create /usr/local directory if it doesn't exist (Solus distro)
584 struct stat s;
585 if (stat("/usr/local", &s) != 0) {
586 printf("Creating /usr/local directory\n");
587 int rv = mkdir("/usr/local", 0755);
588 if (rv != 0) {
589 fprintf(stderr, "Error: cannot create /usr/local directory\n");
590 return 1;
591 }
592 }
593 if (stat("/usr/local/bin", &s) != 0) {
594 printf("Creating /usr/local directory\n");
595 int rv = mkdir("/usr/local/bin", 0755);
596 if (rv != 0) {
597 fprintf(stderr, "Error: cannot create /usr/local/bin directory\n");
598 return 1;
599 }
600 }
601 }
582 set_links(); 602 set_links();
583 603
584 604