Renaming the binary to -qt breaks relaunching the process
Task Info (Flyspray) | |
---|---|
Opened By | Denilson Sá Maia (denilsonsa) |
Task ID | 78933 |
Type | Bug Report |
Project | Arch Linux |
Category | Packages: Extra |
Version | None |
OS | All |
Opened | 2023-06-30 07:53:10 UTC |
Status | Assigned |
Assignee | Balló György (City-busz) |
Details
Description:
Somewhere in guvcview-qt source-code, it uses its own precompiled binary name to (re)launch itself. Thus, when renaming from guvcview to guvcview-qt, this feature gets broken.
Additional info:
- package version: 2.0.8-3
- link to upstream bug report: nothing yet
Steps to reproduce:
-
Install guvcview-qt.
-
Open it, go to "Video Controls" tab.
-
Select a different device. (I hope you have multiple devices; if you don't, you may be able to create virtual ones using v4l2loopback or similar.)
-
guvcview-qt will ask if it should restart or launch a new process. Pick either choice.
-
It fails with the message (in stdout/stderr):
GUVCVIEW (Qt5): spawning new process (guvcview --device=/dev/video3) failed
Proposed solutions:
- Make -qt version conflict with -gtk version.
- Patch the -qt source-code to use a different binary name. Hopefully this is a constant defined somewhere and easy to change.
- Send a patch upstream to extract the actual binary name from
argv[0]
. (Or from somewhere else, I just thinkargv[0]
is the easiest place.)