Don't overwrite shotcut logs (new log time-stamped)


#1

Shotcut notoriously crashes on me throughout all versions historically (but i am in the habit of many many click-saves.)

I would love to upload logs, but obviously workflow gets hindered if ~/.local/share/Meltytech/Shotcut/shotcut-log.txt is automatically over-written at every app execution.

thank you.


#2

Not sure if you’re aware, but you can always save your log before you exit.
2018-11-26_15-20-16

You can also create a shortcut to Shotcut’s log file, which will be useful to you or anyone else who has experienced crashes and want to get at the log file, before restarting.

Windows 10 instructions on making a shortcut for the log file.

Settings/App Data Directory/Show.
shotcut_2018-11-26_15-21-45
explorer_2018-11-26_15-32-06

Right click on shotcut-log.txt.
Create Shortcut.
2018-11-26_15-32-40

Right click on the shortcut, then cut (or copy).
explorer_2018-11-26_15-33-37

Go to your projects folder, right click, paste.
explorer_2018-11-26_15-34-38

From here you can rename it you wish to.
Every time you want a log after Shotcut crashes, use this shortcut before you open Shotcut back up again. It’s a direct link back to the actual Shotcut log file.
Then you can open it up, then File - Save As for a different file name save.

notepad_2018-11-26_15-35-45


#3

the issue, is that when it crashes, and i don’t think to move the log (workflow/time/effort); the crash info gets lost.


#4

I came up with a shell-wrapper solution and will share…

Script assumes you download AppImages to ~/Downloads/

#!/bin/bash

cd ~/Downloads
chmod +x ./Shotcut-*.AppImage

#always choose the latest Shotcut-*.AppImage download
shotcut=$(ls -Art Shotcut-*.AppImage | tail -n 1 | cut -d' ' -f 9-)

#qt fixes
export QT_AUTO_SCREN_FACTOR=0
export QT_SCALE_FACTOR=1

#launch and log
timestamp=$(date +"%Y%m%d_%H%M%S")
filename="/home/${USER}/.local/share/Meltytech/Shotcut/${timestamp}-shotcut-console.log"
echo ${filename}

./${shotcut} 2>&1 | tee "${filename}"

#protect privacy by replacing username
sed -i "s/${USER}/USERNAME/g" "${filename}"

Now every launch should have it’s own log.