Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-5005

symLinkTarget and relative paths

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • None
    • 4.5.2
    • Core: I/O
    • None

    Description

      Steps to reproduce / test case:

      qDebug() << QFile::symLinkTarget("C:
      Acrobat Distiller 8.lnk");

      In some lnk files, there is not absolute path, but only relative. But the function returns the absolute path to the application icon. E.g. "Acrobat Distiller 8.lnk" attached - the function returns the "C:\Windows\Installer{AC76BA86-1033-F400-BA7E-000000000003}_SC_Distiller.exe" .

      More information:

      Info about this link file by Link Viewer:

      Shortcut file:
      File name: Acrobat Distiller 8
      Show style: Normal
      Hotkey: (none)
      Icon file: C:\Windows\Installer{AC76BA86-1033-F400-BA7E-000000000003}_SC_Distiller.exe
      Icon index: 0

      Link information:
      This shortcut links not to a file or a directory.
      File size: 0 Byte (0 KB)
      File attributes: (no attributes)
      Relative path: ..\..\..\..\..\Program Files\Adobe\Acrobat 8.0\Acrobat\acrodist.exe
      Created: 01/01/1601 00:00:00 UTC
      Modified: 01/01/1601 00:00:00 UTC
      Last accessed: 01/01/1601 00:00:00 UTC

      Update from reporter:

      I think you need to use the IShellLink::Resolve method for fix this bug:
      http://msdn.microsoft.com/en-us/library/bb774952(VS.85).aspx

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            sthomass Stian Sandvik Thomassen (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes