File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212import static javaforce .linux .Linux .*;
1313
1414public class Startup {
15- private static boolean openboxFailed = false ;
1615 private static boolean wayland = false ;
1716 private static Properties props ;
17+ private static int LOG_DEFAULT = 0 ;
1818
1919 public static void main (String args []) {
20- JFLog .init (JF .getUserPath () + "/.jfdesktop.log" , true );
20+ JFLog .init (LOG_DEFAULT , JF .getUserPath () + "/.jfdesktop.log" , true );
2121 Linux .init ();
2222 props = Linux .getJFLinuxProperties ();
2323 wayland = getProperty ("wayland" ).equals ("true" );
@@ -27,6 +27,10 @@ public static void main(String args[]) {
2727 config_sway ();
2828 JFLog .log ("Starting wayland..." );
2929 Runtime .getRuntime ().exec (new String [] {"/usr/bin/sway" });
30+ String [] env = JF .getEnvironment ();
31+ for (String e : env ) {
32+ JFLog .log (LOG_DEFAULT , e );
33+ }
3034 } else {
3135 /* Setup display */
3236 Monitor cfg [] = Linux .x11_rr_load_user ();
Original file line number Diff line number Diff line change @@ -32,6 +32,12 @@ public Logon() {
3232 loadNetworkIcons ();
3333 props = Linux .getJFLinuxProperties ();
3434 wayland = getProperty ("wayland" ).equals ("true" );
35+ if (wayland ) {
36+ String [] env = JF .getEnvironment ();
37+ for (String e : env ) {
38+ JFLog .log (LOG_DEFAULT , e );
39+ }
40+ }
3541 if (new File ("/etc/.lastLogon" ).exists ()) {
3642 Properties props = new Properties ();
3743 props .load (new FileInputStream ("/etc/.lastLogon" ));
You can’t perform that action at this time.
0 commit comments