The default paths we want depend on whether this is a "system" instance (/etc, /var), or running under a normal user account ($HOME). So that we can reuse this code for other daemons, the paths are specified as lambda expressions that take the current program's name. They may or may not use this parameter (i.e., lastfmsubmitd itself and a client using this interface will have separate log files, but obviously must share the same spool directory). The "user" version of a path should contain ~, which this class will expand. Creates a callable that takes whether or not we want the "system" version, and the name.
Public Member Functions