-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logging: Improve access to log files #1123
Conversation
@OrderedSet86 This is based off of our discussion in #1118 (comment). Feel free to take a look, if you like. The logging changes in Game Files were primarily made around your point here:
Logging WindowBecause all SteamTinkerLaunch windows are Yad dialogs, persistent windows like you have described are not really feasible. When you click any of the buttons along the bottom row of a window, the reason it closes is because those are dialog action buttons, a row of glorified "Ok/Cancel" buttons. The Main Menu buttons spawn separate processes that spawn further Yad dialogs. Dynamic windows like the one in Lutris is also not possible, I don't think you can continually update dialog content with Yad. In theory, there could be a button that would open a dialog with log text, but it wouldn't be possible to my knowledge to dynamically update this content with Yad, so it wouldn't do anything. On top of this, it would be tied to the Steam Game process. If it was started as, say, a separate disowned SteamTinkerLaunch process, then This is why I went with the Include
|
5366ce9
to
ea5ea40
Compare
This makes manually copying the Vortex command easier to troubleshoot running it manually.
* Current log at /dev/shm/steamtinkerlaunch/steamtinkerlaunch.log * Current temp dir at /dev/shm/steamtinkerlaunch (to view other log files, not just steamtinkerlaunch.log) * Per-game log folder at LOGDIR (by default, STLCFGDIR/logs/steamtinkerlaunch)
c4ff8d3
to
2f416f1
Compare
I think this is good to merge, please let me know if you have any comments based on what I couldn't add exactly in your original ask. Anything you want to reply to in my above message is still welcome 😄 |
Thanks, I really appreciate these changes! I also will be putting in a PR to update the README shortly. Hopefully that will lead to less confusion over using the correct version. |
Based on discussion in #1118.
This PR does a few things:
/dev/shm/steamtinkerlaunch/steamtinkerlaunch.log
file, so that it can be opened graphically./dev/shm/steamtinkerlaunch
folder, which may contain other logs specific to that session.${STLCFGDIR}/logs/steamtinkerlaunch
.As per usual, if
xdg-open
is not available on the system, these files cannot be opened. If the paths don't exist in the first place when the menu is being opened, they won't be displayed on the menu (following the existing pattern).TODO: