Menu

Make drakon_editor.settings file hidden maybe?

2016-02-23
2016-02-23
  • Oleg Antonyan

    Oleg Antonyan - 2016-02-23

    Hi! Thanks for the cool project!
    I think it would be nice to rename drakon_editor.settings to .drakon_editor.settings. This will make it hidden on Linux and this is usual way to deal with config files in home directory
    Thanks

     
  • Finder X

    Finder X - 2017-10-10

    For the time being, I hard code the path for that file to ~/.config/drakon/

    To do that open the file drakon/scripts/app_settings.tcl
    In

    proc p.path { app } {
    global env
    set name $app.settings
    set home $env(HOME)
    set path [ file join $home $name ]
    return $path
    }

    add this line set config ".config/drakon/"
    and change set path [ file join $home $name ]
    to -> set path [ file join $home $config $name ]

    The result must be

    proc p.path { app } {
    global env
    set name $app.settings
    set home $env(HOME)
    set config ".config/drakon/"
    set path [ file join $home $config $name ]
    return $path
    }

    Note that you need to manually create the folder ~/.config/drakon/
    because the script not make the directory.

    And now the file is created in ~/.config/drakon/drakon_editor.settings

     

    Last edit: Finder X 2017-10-10

Log in to post a comment.

MongoDB Logo MongoDB