diff --git a/Manage Conky.xcworkspace/xcuserdata/npyl.xcuserdatad/UserInterfaceState.xcuserstate b/Manage Conky.xcworkspace/xcuserdata/npyl.xcuserdatad/UserInterfaceState.xcuserstate index eb0ef5b..d01fe8a 100644 Binary files a/Manage Conky.xcworkspace/xcuserdata/npyl.xcuserdatad/UserInterfaceState.xcuserstate and b/Manage Conky.xcworkspace/xcuserdata/npyl.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Manage Conky/MCObjects/MCObjects.m b/Manage Conky/MCObjects/MCObjects.m index 801f580..c2d61ee 100644 --- a/Manage Conky/MCObjects/MCObjects.m +++ b/Manage Conky/MCObjects/MCObjects.m @@ -136,14 +136,9 @@ - (void)kill - (void)enable { /* - * itemPath must have the spaces replaced by '\' - * Because bash is - well... bash! - and it won't - * parse them correctly. Also fix the '(' and ')'. + * Custom-Normalise for our needs */ - NSString *correctedItemPath = [_itemPath stringByReplacingOccurrencesOfString:@" " - withString:@"\\ "]; - correctedItemPath = [correctedItemPath stringByReplacingOccurrencesOfString:@"(" withString:@"\\("]; - correctedItemPath = [correctedItemPath stringByReplacingOccurrencesOfString:@")" withString:@"\\)"]; + NSString *correctedItemPath = MCNormalise(_itemPath); /* * IF conky is set to run at startup we must do LaunchAgent housekeeping... @@ -349,7 +344,6 @@ + (instancetype)themeRepresentationForThemeRC:(NSString *)themeRC /* * Doing it the conky-manager way... */ - NSString *themeRoot = [themeRC stringByDeletingLastPathComponent]; NSError *error = nil; @@ -522,8 +516,10 @@ - (void)enable const BOOL keepAlive = YES; NSError *error = nil; + NSString *correctedConfig = MCNormalise(config); + createLaunchAgent(label, - @[CONKY_SYMLINK, @"-c", config], + @[CONKY_SYMLINK, @"-c", correctedConfig], keepAlive, _startupDelay, workingDirectory,