Set env value if not in recovery gui & update Version 19/241319/1 accepted/tizen/unified/20200820.034753 submit/tizen/20200819.075512
authordyamy-lee <dyamy.lee@samsung.com>
Wed, 19 Aug 2020 06:38:05 +0000 (15:38 +0900)
committerdyamy-lee <dyamy.lee@samsung.com>
Wed, 19 Aug 2020 06:38:05 +0000 (15:38 +0900)
Change-Id: Iab44a06e3239479b7cc5cda682c66b30d470bf8b

packaging/firmware-update-system-ui.spec
recovery_gui_common/recovery_gui_common_main.c

index 23aab648cd7007a8a1b1011d0742ea2cd7e1ff60..f1b836e5bcbdefad2bfe889d60365ebe99d9665f 100644 (file)
@@ -1,7 +1,7 @@
 Name:          firmware-update-system-ui
 Summary:       firmware-update-system-ui
 ExclusiveArch: %{arm} aarch64
-Version:       1.2.8
+Version:       1.2.9
 Release:       0
 Group:         System
 License:       Apache-2.0
index 6a63c9637a22555023f9f3b6b174ae29e38a68c0..0aa619073e0c9d22bb46a62367932bfd93a4f0d3 100644 (file)
@@ -48,6 +48,22 @@ static int wait_ani_main_solis(void)
 {
        int delay = 20000;
 
+       char *xdg_env = getenv("XDG_RUNTIME_DIR");
+       if(!xdg_env)
+       {
+               setenv("XDG_RUNTIME_DIR","/run",1);
+               char *c = getenv("XDG_RUNTIME_DIR");
+               LOG("check env XDG_RUNTIME_DIR =  %s\n", c);
+       }
+
+       char *tbm_env = getenv("TBM_DISPLAY_SERVER");
+       if(!tbm_env)
+       {
+               setenv("TBM_DISPLAY_SERVER","1",1);
+               char *c = getenv("TBM_DISPLAY_SERVER");
+               LOG("check env XBM_DISPLAY_SERVER =  %s\n", c);
+       }
+
        if (setpriority(PRIO_PROCESS, getpid(), -11) < 0)
                LOG("failed to setpriority\n");