Report system fallback shell

This commit is contained in:
crschnick 2024-10-09 06:29:36 +00:00
parent 531d019b54
commit bfd583e325

View file

@ -4,6 +4,7 @@ import io.xpipe.app.core.AppLogs;
import io.xpipe.app.core.AppProperties; import io.xpipe.app.core.AppProperties;
import io.xpipe.app.core.AppState; import io.xpipe.app.core.AppState;
import io.xpipe.app.core.mode.OperationMode; import io.xpipe.app.core.mode.OperationMode;
import io.xpipe.app.ext.ProcessControlProvider;
import io.xpipe.app.prefs.AppPrefs; import io.xpipe.app.prefs.AppPrefs;
import io.xpipe.app.update.XPipeDistributionType; import io.xpipe.app.update.XPipeDistributionType;
import io.xpipe.app.util.LicenseProvider; import io.xpipe.app.util.LicenseProvider;
@ -163,6 +164,7 @@ public class SentryErrorHandler implements ErrorHandler {
s.setTag("diagnostics", Boolean.toString(ee.isShouldSendDiagnostics())); s.setTag("diagnostics", Boolean.toString(ee.isShouldSendDiagnostics()));
s.setTag("licenseRequired", Boolean.toString(ee.isLicenseRequired())); s.setTag("licenseRequired", Boolean.toString(ee.isLicenseRequired()));
s.setTag("fallbackShell", AppPrefs.get() != null ? String.valueOf(AppPrefs.get().useLocalFallbackShell().get()) : "unknown");
var exMessage = ee.getThrowable() != null ? ee.getThrowable().getMessage() : null; var exMessage = ee.getThrowable() != null ? ee.getThrowable().getMessage() : null;
if (ee.getDescription() != null if (ee.getDescription() != null