(self)
| 272 | subprocess.run(["xdg-open", path]) |
| 273 | |
| 274 | def _open_logs(self): |
| 275 | log_file_path = os.path.join(get_program_files_directory(), LOG_FILE_NAME) |
| 276 | if os.path.exists(log_file_path): |
| 277 | try: |
| 278 | self.open_location(log_file_path) |
| 279 | except Exception as e: |
| 280 | CustomDialog( |
| 281 | f"Failed to open the log file '{log_file_path}'.\nError: {e}", |
| 282 | msg_type="error", |
| 283 | ).mainloop() |
| 284 | else: |
| 285 | CustomDialog( |
| 286 | f"Log file not found at '{log_file_path}'.", msg_type="error" |
| 287 | ).mainloop() |
| 288 | |
| 289 | def _open_program_location(self): |
| 290 | try: |
nothing calls this directly
no test coverage detected