QuantumEntangledAndy / neolink

An RTSP bridge to Reolink IP cameras
GNU Affero General Public License v3.0
250 stars 41 forks source link

Fails if $HOME/.config/ does not exist (Debian) #178

Open iam-TJ opened 8 months ago

iam-TJ commented 8 months ago

(Trying to) run neolink on a headless Raspbian 12 I hit a minor issue that could be handled better (by adding the missing directory):

WARN  neolink::common::pushnoti] Unable to save push notification details (fcm_token = "fM21zuyS818:APA91bGX_-EKG9R5PdW7_zo0sj8Gvma65K-aklXHuX_2idd0N3yhliwmsCIubKQp4eA5rw5w
ICIR1DVs8UuxV3nwxqwgDs6P9nWheSTdnUFzMhrlil9_bK7Aal8_FqRhbOidZudXFBE9"                                                                                                                             

    [gcm]                                                                                                                                                                                         
    android_id = "4684185679655431832"                                                                                                                                                            
    security_token = "7656604064227498847"                                                                                                                                                        

    [keys]                                                                                                                                                                                        
    public_key = "BC2zpG1I1SicG6dIvwX9hg6s_DxESKyujRf5vVjhqh0zp5nrL83FATlNPr3QH2PDmF68OCCZ6KBhNSi31gzj8FE"                                                                                        
    private_key = "cDUI3e3EEJYVe4YF2X7Ug5qaoPpbbuqjRvSt5kn0w6s"                                                                                                                                   
    auth_secret = "KTDedXLzo54Cpux9cF41-g"                                                                                                                                                        
    ) to Some(                                                                                                                                                                                    
        "/home/tj/.config/./neolink_token.toml",                                                                                                                                                  
    ) because of the error Os {                                                                                                                                                                   
        code: 2,                                                                                                                                                                                  
        kind: NotFound,                                                                                                                                                                           
        message: "No such file or directory",                                                                                                                                                     
    }