https://bugs.kde.org/show_bug.cgi?id=470381
Bug ID: 470381 Summary: Julia backend does not allow symlinked executable Classification: Applications Product: cantor Version: 23.04.1 Platform: NixOS OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: julia-backend Assignee: cantor-b...@kde.org Reporter: hqu...@outlook.com Target Milestone: --- SUMMARY If the julia executable on your path is a symlink, the julia backend cannot be chosen. STEPS TO REPRODUCE 1. Have the julia executable on your path be a symlink (eg install through nix) 2. Launch cantor 3. Attempt to open with julia backend OBSERVED RESULT The following message is displayed: ``` Some requirements are not fulfilled: The path to Julia specified in the application settings must point directly to the executable. Symlinks are not allowed. Please provide the correct path in the application settings and try again. ``` EXPECTED RESULT Julia backend can be selected SOFTWARE/OS VERSIONS Linux/KDE Plasma: nixos unstable (available in About System) KDE Plasma Version: 5.27.5 KDE Frameworks Version: 5.106.0 Qt Version: 5.15.9 ADDITIONAL INFORMATION By searching the code, symlinks are only prevented in the julia backend. The logic exists in this file https://invent.kde.orghttps://invent.kde.org/education/cantor/-/blob/d5121b245973f1e70949828d6a98e4bf0cfd6ff9/src/backends/julia/juliabackend.cpp#L84 and (I think) the logic was first introduced in https://invent.kde.org/education/cantor/-/commit/1e144559c034ff70b23b3d6b5c1b7b28dbf8af18 By building cantor with the logic removed, the julia backend works. However, I am unsure if this is suitable since I do not know why symlinks are prevented. Also, I am asking since I wish to also patch out this logic in the nixpkgs package for cantor in order for the cantor julia backend to work. https://github.com/NixOS/nixpkgs/pull/234479/files#diff-b1d95328883e905223e5671936ca77425773b2f4a2f7293311a5cb1a37c76e95 -- You are receiving this mail because: You are watching all bug changes.