Closed steenburgh closed 6 years ago
This issue needs to be reopened. The lines I added to the script are being run, but the options aren't being properly set. This is weird because if I run the script a second time, the options get properly set. I suspect something installed later in the script is resetting them, but I wasn't able to figure out what.
I found the error:
Setting up autoplay for linux mint
Property "/autoplay-audio-cds/command" does not exist on channel "thunar-volman". If a new property should be created, use the --create option.
Property "/autoplay-audio-cds/enabled" does not exist on channel "thunar-volman". If a new property should be created, use the --create option.
Property "/autoplay-video-cds/command" does not exist on channel "thunar-volman". If a new property should be created, use the --create option.
Property "/autoplay-video-cds/enabled" does not exist on channel "thunar-volman". If a new property should be created, use the --create option.
Looks like following the suggestion in the error message (creating the property before setting it) fixed the problem, but there is one important thing to note; xfconf-query
behaves differently when running as a non-root user, so don't forget to run it as root when testing. This confused me a bit when testing things.
For example, the command I initially had in the script,
xfconf-query -c thunar-volman -p /autoplay-audio-cds/command -s "/usr/bin/vlc cdda://"
ran successfully when run outside of install.sh
, but when I ran it as root like
sudo xfconf-query -c thunar-volman -n -t string -p /autoplay-audio-cds/command -s "/usr/bin/vlc cdda://"
will fail with the error:
Property "/autoplay-audio-cds/command" does not exist on channel "thunar-volman". If a new property should be created, use the --create option.
like it did when it was being run inside install.sh
Another important thing to note is that although running xfconf-query
as the root user modifies settings for all users, the changes won't take effect until the next time you (or another user) logs in.
After a fresh mint install, the autoplay settings need to be manually modified to point at vlc.