diff --git a/app/src/main/java/io/xpipe/app/comp/about/BrowseDirectoryComp.java b/app/src/main/java/io/xpipe/app/comp/about/BrowseDirectoryComp.java index 4c26e3b23..63ff5ec6f 100644 --- a/app/src/main/java/io/xpipe/app/comp/about/BrowseDirectoryComp.java +++ b/app/src/main/java/io/xpipe/app/comp/about/BrowseDirectoryComp.java @@ -2,6 +2,7 @@ package io.xpipe.app.comp.about; import io.xpipe.app.comp.base.ButtonComp; import io.xpipe.app.core.AppLogs; +import io.xpipe.app.editor.EditorState; import io.xpipe.app.issue.UserReportComp; import io.xpipe.core.util.XPipeInstallation; import io.xpipe.extension.I18n; @@ -26,10 +27,16 @@ public class BrowseDirectoryComp extends SimpleComp { UserReportComp.show(event.build()); }), null) + .addComp( + "logFile", + new ButtonComp(I18n.observable("openCurrentLogFile"), () -> { + EditorState.get().openInEditor(AppLogs.get().getSessionLogsDirectory().resolve("xpipe.log").toString()); + }), + null) .addComp( "logFiles", new ButtonComp(I18n.observable("openLogsDirectory"), () -> { - OsHelper.browsePath(AppLogs.get().getLogsDirectory()); + OsHelper.browsePath(AppLogs.get().getSessionLogsDirectory()); }), null) .addComp( diff --git a/app/src/main/resources/io/xpipe/app/resources/lang/translations_en.properties b/app/src/main/resources/io/xpipe/app/resources/lang/translations_en.properties index a32724d53..0106d75a7 100644 --- a/app/src/main/resources/io/xpipe/app/resources/lang/translations_en.properties +++ b/app/src/main/resources/io/xpipe/app/resources/lang/translations_en.properties @@ -126,9 +126,11 @@ privacyPolicy=Privacy Policy agree=Agree disagree=Disagree directories=Directories +logFile=Log File logFiles=Log Files logFilesAttachment=Log Files (Sensitive information removed) issueReporter=Issue Reporter +openCurrentLogFile=Open current log file openLogsDirectory=Open logs directory installationFiles=Installation Files openInstallationDirectory=Open installation directory