HandBrake icon indicating copy to clipboard operation
HandBrake copied to clipboard

Linux - Unable to select files in /dev as a source in the GUI

Open aquova opened this issue 1 year ago • 2 comments

Problem Description

I have used Handbrake quite a bit in the past, but today when I went to use it, I found that there are no files available in the /dev directory when I am attempting to Open Source. Typically, I select /dev/sr0, and Handbrake begins parsing, but I have no option to do so, and I can find no setting to display them. See attached screenshot.

Running HandBrakeCLI -t 0 -i /dev/sr0 does correctly scan the disc, and mpv is able to playback, so it does not appear to be a groups/permission issue. I am using Arch Linux using KDE Plasma. I typically use Wayland, but out of curiosity switched back to X11 but encountered the same issue.

handbrake

Activity Log, Crash Log or any other details

OS: Arch Linux
HandBrake 1.7.2 (2023122400)
Kernel: Linux 6.6.8-arch1-1 (x86_64)
CPU: AMD Ryzen 5 5600X 6-Core Processor x 12
Install Dir: /usr/bin
Config Dir:  /home/aquova/.config/ghb
_______________________________

[12:33:00] Compile-time hardening features are enabled
[12:33:00] nvenc: version 12.1 is available
[12:33:00] nvdec: is not compiled into this build
[12:33:00] qsv: not available on this system
[12:33:00] hb_init: starting libhb thread
[12:33:00] hb_init: starting libhb thread
[12:33:00] hb_init: starting libhb thread
Gtk-Message: 12:33:00.481: Failed to load module "appmenu-gtk-module"

What Operating System are you running?

Arch Linux - KDE Plasma Wayland

What version of HandBrake are you running?

1.7.2

Where did you download HandBrake from?

Arch Linux repositories

aquova avatar Jan 02 '24 18:01 aquova

I can see why this is happening (the file filter for All Files only shows regular files, not device files). I will fix that for the next version, but in the meantime I can offer you two workarounds:

  1. Enable the xdg-desktop-portal file dialog: If you edit the HandBrake application shortcut to add the environment variable GTK_USE_PORTAL=1 you will get the native KDE file dialogs, which will give you a better experience overall but also allow you to remove the filter and select /dev/sr0. Installing the Flatpak version will achieve the same result.
  2. Install gvfs: If gvfs is available, HandBrake will be able to tell you have a DVD drive and display a dedicated menu item in the File menu for easy access. I haven't tested whether installing this on KDE may have consequences in other applications, so I can't outright recommend it, but you may want to try it.

robxnano avatar Jan 03 '24 15:01 robxnano

Should be fixed in #5666, if someone can confirm.

galad87 avatar Jan 11 '24 07:01 galad87