Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aptly graph image is removed immediately after rendering #1213

Open
artem-kamyshev opened this issue Aug 25, 2023 · 1 comment · May be fixed by #1214
Open

aptly graph image is removed immediately after rendering #1213

artem-kamyshev opened this issue Aug 25, 2023 · 1 comment · May be fixed by #1214

Comments

@artem-kamyshev
Copy link

I try to view a graph. I see it opened in Gwenview for a moment, but then the viewer closes it and shows a tmp folder and there's no aplty-generated files in it which I can confirm with ls for example. The file is generated but it's removed in a second or two for some reason.

Detailed Description

akamyshev@workpc:/repostests$ /opt/aptly/aptly_1.5.0_linux_amd64/aptly graph
Generating graph...
Rendered to png file: /tmp/aptly-graph4049935713.png, trying to open it with: xdg-open /tmp/aptly-graph4049935713.png...
org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-mng"
org.kde.kdegraphics.gwenview.lib: Unresolved raw mime type "image/x-nikon-nrw"
org.kde.kdegraphics.gwenview.lib: Unresolved raw mime type "image/x-samsung-srw"
org.kde.kdegraphics.gwenview.app: Found no root index for QUrl("file:///tmp")
akamyshev@workpc:
/repostests$ org.kde.kdegraphics.gwenview.lib: Could not generate thumbnail for file "file:///tmp/aptly-graph4049935713.png"

Your Environment

Debian 11
aptly 1.5.0

@reglim
Copy link
Contributor

reglim commented Sep 12, 2023

Just tried it and had the same issue, I'll look at it.

reglim added a commit that referenced this issue Sep 12, 2023
Remove the code that deletes the generated image before aptly even exits.

Fixes: #1213
reglim added a commit that referenced this issue Sep 13, 2023
The temporary output file is now only deleted after copying it to the output location.

Fixes: #1213
reglim added a commit that referenced this issue Sep 13, 2023
The temporary output file is now only deleted after copying it to the output location.

Fixes: #1213
@reglim reglim linked a pull request Sep 13, 2023 that will close this issue
6 tasks
reglim added a commit that referenced this issue Sep 13, 2023
The temporary output file is now only deleted after copying it to the output location.

Fixes: #1213
reglim added a commit that referenced this issue Sep 13, 2023
The temporary output file is now only deleted after copying it to the output location.

Fixes: #1213
reglim added a commit that referenced this issue Sep 13, 2023
The temporary output file is now only deleted after copying it to the output location.

Fixes: #1213
reglim added a commit that referenced this issue Sep 14, 2023
The temporary output file is now only deleted after copying it to the output location.

Fixes: #1213
reglim added a commit that referenced this issue Dec 13, 2023
The temporary output file is now only deleted after copying it to the output location.

Fixes: #1213
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants