Your personal config file is set up correctly, but using sudo to start the service means it's a system service and thus being run by root. Who doesn't know about your config file at all.when I try to start the systemctl process withI get the errorCode:
sudo systemctl start rip-audio.service
...However I know that my .config file is working and properly setup with my drive offset.Code:
...Dec 22 13:55:35 raspberrypi whipper.sh[3726]: Error: drive offset unconfigured. Please install pycdio and run 'whipper offset find' to detect your drive's offset or set it manually in the configuration file. ...
Possible cop-out fix: copy your config file to /root
Alternative approach, still using systemd: look into setting up a user service. This is a fairly decent intro: systemd user services and systemctl --user
Alternative long-shot solution: maybe pcmanfm (the file manager) has a command action that runs when a CD is inserted? I don't see this in the preferences, but maybe there's a way to have the file manager trigger your script
Statistics: Posted by scruss — Fri Dec 22, 2023 9:50 pm