Skip to content

Commit 6549ea8

Browse files
committed
jfLinux : log environments
1 parent 6dea428 commit 6549ea8

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

projects/jfdesktop/src/Startup.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
import static javaforce.linux.Linux.*;
1313

1414
public 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();

projects/jflogon/src/Logon.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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"));

0 commit comments

Comments
 (0)