Package: gpu-viewer
Version: 3.23+ds-1

1. setting env var PYTHONSAFEPATH=1 is a good security practice but it seems the app can't run when it's set, which means its path is not configured properly. It's a common packaging error, see for example #1098672

```
% gpu-viewer
Traceback (most recent call last):
  File "/usr/share/gpu-viewer/Files/gpu_viewer.py", line 13, in <module>
    from vulkan_viewer import create_vulkan_tab_content
ModuleNotFoundError: No module named 'vulkan_viewer'
```

2. even when disabling this security, the app still fails to run:

```
%  PYTHONSAFEPATH= LANG=C gpu-viewer
[…] usual useless gtk messages […]
Traceback (most recent call last):
File "/usr/share/gpu-viewer/Files/gpu_viewer.py", line 262, in on_activate
    about_box = about_page(page3_box)
  File "/usr/share/gpu-viewer/Files/aboutPage.py", line 70, in about_page
    with open("../About_GPU_Viewer", "r") as file1:
         ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '../About_GPU_Viewer'
```

3. So I Ctrl-C the app, and when I try to run it again, a dialog box tells me

> gpu-viewer is already running
> If you are unable to view the application, please run rm -r /tmp/gpu-viewer and run the application again

so the app doesn't work at all as is.

Reply via email to