You are not logged in.

#1 2019-07-07 03:14:48

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

[Solved] sxiv writes temp files to /home

This is weird. There is a bug somewhere, but it is not with sxiv.

If I open an image with sxiv (or sxiv-git), it writes a file to home, with a filename like 1562468903.exiv2_temp

┌─[Shiv ~]
└─╼ file 1562468903.exiv2_temp                                                                                                                                
1562468903.exiv2_temp: empty

stat 1562468903.exiv2_temp                                                                                                                                
  File: 1562468903.exiv2_temp
  Size: 0               Blocks: 0          IO Block: 4096   regular empty file
Device: fe02h/65026d    Inode: 5769179     Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/   jason)   Gid: ( 1000/   jason)
Access: 2019-07-07 15:08:23.961102476 +1200
Modify: 2019-07-07 15:08:23.961102476 +1200
Change: 2019-07-07 15:08:23.961102476 +1200
 Birth: 2019-07-07 15:08:23.961102476 +1200

If I open several images, one temp file is created for each one, polluting home.

Now the weird bit. sxiv does not depend on exiv2. If I remove exiv2 from my system, sxiv creates no temp files.

exiv2 is a dependency of Gimp. Opening, editing, or saving an image in Gimp creates no temp file.

So the bug appears to be with exiv2, but I'm not sure how to narrow it down further. Any pointers?

┌─[Shiv ~]
└─╼ pacman -Q sxiv exiv2 gimp                                                                                                                                 
sxiv 25-1
exiv2 0.27.1-1
gimp 2.10.12-1

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#2 2019-07-07 11:46:38

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: [Solved] sxiv writes temp files to /home

Probably something in the image-info script?

grep -r exiv2 ~/.config/sxiv

Last edited by lolilolicon (2019-07-07 11:47:11)


This silver ladybug at line 28...

Offline

#3 2019-07-07 18:52:01

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] sxiv writes temp files to /home

Thanks! I'm guessing that would make exiv2 at least an optdepends of sxiv...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2019-07-07 19:59:04

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,762

Re: [Solved] sxiv writes temp files to /home

It would seem you're keeping an image-info pre https://github.com/muennich/sxiv/commit … bfd938fca0 ?
Right now there seems no reference to exiv2 in the upstream scripts (nor the one provided by the repo package.

Offline

#5 2019-07-07 22:17:17

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] sxiv writes temp files to /home

Yep: my bad tongue


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB