https://bugs.kde.org/show_bug.cgi?id=424033

            Bug ID: 424033
           Summary: Can't associate a file with a relative path without
                    having the file copied
           Product: KBibTeX
           Version: git (master)
          Platform: Manjaro
                OS: Linux
            Status: REPORTED
          Severity: major
          Priority: NOR
         Component: User interface
          Assignee: fisc...@unix-ag.uni-kl.de
          Reporter: nobodyinper...@posteo.de
  Target Milestone: ---

SUMMARY

When linking an external PDF, the ”Do not copy or move document” option is not
honored. Instead, the linked file is copied next to the bibliography file and
the path to the original file is lost and set only to the filename.

STEPS TO REPRODUCE
1. Create a new bibliography.
2. Add an entry.
3. In the dialog, switch to the External tab and click ”Add file” --> ”Add
reference”
4. Select a file in a folder or subfolder next to the bibliography file (at
least so that a relative path makes sense)
5. In the next dialog, keep all settings at their default (don't move or copy,
relative path). Up until now everything is fine.
6. Click OK. Now the weirdness begins.

OBSERVED RESULT

- The link to the file (which was displayed correctly in the preview dialog) is
stripped down to only the filename.
- The selected file is copied next to the bibliography file.

So it seems that the second option (Copy file next to bibliography) is forced.


EXPECTED RESULT

- The relative path is used as shown in the preview.
- The linked file is neither moved nor copied but left in peace (As is the case
with KBibTeX stable 0.9.2)

SOFTWARE/OS VERSIONS

- up-to-date Manjaro XFCE, built from AUR or with run-kbibtex.sh from upstream
master (0c711606), same result.

ADDITIONAL INFORMATION

I browsed the relevant source code (src/gui/element/associatedfilesui.cpp and
src/networking/associatedfiles.cpp obviously) but couldn't find the problem on
the quick.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to