This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/CCSTUDIO: TI_APPDATA_DIR ignored by launcher

Part Number: CCSTUDIO


Tool/software: Code Composer Studio

Dear community,

I've noticed that the environment variable TI_APPDATA_DIR is ignored by the ccstudio launcher for the creation of ~/ti folder. I like to keep my home folder organized and thus, I try as hard as I can to avoid temp folders/dotfiles/dotdirs being created in ~. I can easily avoid all the java dotfiles by adding -Duser.home=/mnt/ccs to ccstudio.ini file. I can also avoid the creation of ~/.ti (note the dot in front of ti) folder by setting the TI_APPDATA_DIR to somewhere hidden. But I cannot get rid of ti folder.  /mtn/ccs is owned by my user. I'm using Archlinux, by the way.

I could use some help on how to get rid of the ~/ti folder.

In the next post I show an experiment that shows that TI_APPDATA_DIR is not used by the launcher

Cheers,
Daniel.

  • $ chmod -w ~
    
    $ LANG=C TI_APPDATA_DIR=/mnt/ccs /opt/ccstudio/ccsv8/eclipse/ccstudio  
    boost::filesystem::create_directory: Permission denied: "/home/daniel/ti"
    
    If this continues, please run fsclean or set TI_APPDATA_DIR to directory

    you have permissions to access daniel@MSI ~ % ls -lha /mnt/ccs total 4,0K drwxr-xr-x 1 daniel users 192 out 24 19:41 . drwxr-xr-x 1 root root 6 out 22 23:26 .. drwxr-xr-x 1 daniel users 20 out 22 23:35 .cache drwxr-xr-x 1 daniel users 106 out 24 19:40 .eclipse drwxr-xr-x 1 daniel users 10 out 22 23:27 .java -rw-r--r-- 1 daniel users 0 out 22 23:47 .lock drwxr-xr-x 1 daniel users 52 out 22 23:27 .oracle_jre_usage drwxr-xr-x 1 daniel users 22 out 22 23:27 .swt drwxr-xr-x 1 daniel users 0 out 22 23:27 .webclipse -rw-r--r-- 1 daniel users 127 out 22 23:27 .webclipse.properties drwxr-xr-x 1 daniel users 2 out 22 23:47 ccstudio drwxr-xr-x 1 daniel users 92 out 24 19:42 workspace_v8

  • Hi Daniel,
    For many of the subfolders inside ti, the component that generates the content can be configured to use a specific path. But I will check to see if there is a way to change the location of 'ti' itself.

    Thanks
    ki
  • Hi Daniel,

    Sorry for the delayed response. There are several components that use ~/ti as a default location for various file. 

    CCSTargetConfigurations subfolder is specified in the CCS Debug Preferences:

    The tirex-* folders are specified in the various *.json files in: /ccsv8/tirex/ti-rex-core/config

    I am still trying to find the source of the CCSExternalReferences folder.

    Thanks

    ki

  • Thank you Ki-Soo Lee for providing some help to the issue. I'm aware of that configuration. Still, it does not solve the issue of the ~/ti folder being created. This is hard to track because nothing is created inside the "ti" folder. Just the folder. Anyway, I have left this aside for another time.

  • Daniel Cafe said:
    This is hard to track because nothing is created inside the "ti" folde

    hmm. I see. If you delete this empty folder and launch CCS, does it create it again?

  • It does. For the moment, I've created a .hidden file with the content "ti", so that nautilus won't show the folder in the file browser. It still shows up in the terminal, though.

    If I had access to the source code, I'd look for calls to the create_directory(...) function and wrap it with a condition if TI_APPDATA_DIR is set.