Skip to content

Not able to handle linux abbreviation for home directory (~) #104

@JohnHadish

Description

@JohnHadish

For this example, assume we are launching KINC in the directory ExampleDir1, and ExampleDir2 has the file we need to reference (In this example, I have an imaginary KINC AMX file)

ACE is able to handle relative paths to files:

../ExampleDir2/AMX.tsv

And absolute paths to files:

home/usr/Documents/ExampleDir2/AMX.tsv

But cannot recognize the standard abbreviation for the home directory used by linux systems (which is ~) :

~/Documents/ExampleDir2/AMX.tsv

Here is the error which is thrown when a user attempts to use the ~ in a reference path:

Invalid MIT-MAGIC-COOKIE-1 key../../src/core/ace_analytic_abstractmanager.cpp:666
QFile* Ace::Analytic::AbstractManager::addInputFile(const QString&)
SYSTEM ERROR
Failed opening file ~/Documents/05-galaapple_postharvesttreatment/01-input_data/GA-1-18_MetaData.tsv: No such file or directory

This is a minor annoyence, but I have happened on it twice by accident now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions