henrywoo / kazam

Kazam2 - Linux Screen Recorder, Broadcaster, Capture and OCR with AI in mind
https://github.com/henrywoo/kazam
GNU General Public License v3.0
210 stars 22 forks source link

Cannot choose Screencast/screenshot output directory using file explorer shortcuts #38

Closed loic-lescoat closed 5 months ago

loic-lescoat commented 8 months ago

What is the issue?

Selecting an output directory for taking screencasts or screenshots using the file explorer's folder shortcuts is a no-op, in the sense that it does not change the output directory.

Why is this important?

How to reproduce the issue

1. Run kazam using ./kazam --debug and open settings using window's File tab

0_settings

2. Click Capture to take a screencast

The video is saved in the directory specified in the settings (/home/loic/Videos in this example), as expected: 2_screencast_in_videos

3. Use the settings window to select a new output directory

We use /home/loic/Documents in this example:

3_choose_doc

Notice how kazam's debug output (terminal window in top right) says Autosave video folder set to: /home/loic/Videos, indicating our operation was a no-op:

4_no_op

4. Click Capture to record another screencast

Notice how the screencast is saved to the same directory (/home/loic/Videos), though we expect it to be saved in /home/loic/Documents:

5_same_dir

5. Switch to the Screenshot tabs in both kazam windows

6_screenshot

6. Click Capture to capture a screenshot

Notice how it is saved to /home/loic/Videos, as expected, given our settings:

7_videos

7. Use the settings window to select a new output directory

We use /home/loic/Downloads in this example:

8_choose_downloads

Notice how kazam's debug output (terminal window in top right) says Autosave picture folder set to: /home/loic/Videos, indicating our operation was a no-op:

9_no_op

8. Click Capture to record another screenshot

Notice how the screenshot is saved to the same directory (/home/loic/Videos), though we expect it to be saved in /home/loic/Downloads:

10_saved_videos

Version info

Kazam version 1.5.7 Jammy (commit b30ac3f) running on ubuntu 22.04.

Output of running ./kazam --debug when executing steps above

Click here to see the output

Note

If we choose an output folder by clicking Other (see this screenshot) rather than directly clicking a shortcut folder, this problem does not occur.