Strange MOC with timidity issue in Fedora 26

tl;dr In summary, I can only run moc when I am in ~/.moc folder, not outside it. Manually adding location of timidity.cfg in config does not work.

Hi, I updated the system to Fedora 26, and have installed moc using sudo dnf install moc command. After creating empty file in /etc/popt.d named mocp, and creating ~/.moc folder and copying config.example file as ~/.moc/config file, I was expecting moc to run as usual. But I got this error.

[Abhinav@localhost ~] $ mocp FATAL_ERROR: TiMidity-Plugin: Error processing TiMidity-Configuration! Configuration file is: <default>

After researching for solutions, including but not limited to installing timidity related libs and stuffs and some other things, I am able to run moc, but only when I am in ~/.moc folder. I manually added the location of timidity.cfg file in the moc config but then moc does not start at all.

[Abhinav@localhost ~] $ mocp --version This is : Music On Console Version : 2.6-alpha3 Revision : 2933 Built : May 17 2017 21:59:52 Compiled with : OSS ALSA JACK Network streams resample Running on : Linux 4.11.10-300.fc26.x86_64 x86_64 Author : Damian Pietras Homepage : http://moc.daper.net/ E-Mail : mocmaint@daper.net Copyright : (C) 2003-2016 Damian Pietras and others License : GNU General Public License, version 2 or later [Abhinav@localhost ~] $ mocp FATAL_ERROR: TiMidity-Plugin: Error processing TiMidity-Configuration! Configuration file is: <default> [Abhinav@localhost ~] $ cd .moc [Abhinav@localhost .moc] $ ls cache config equalizer last_directory pid socket2 softmixer themes timidity.cfg [Abhinav@localhost .moc] $ mocp [Abhinav@localhost .moc] $ # this time it worked, because I am in ~/.moc [Abhinav@localhost .moc] $ cd .. [Abhinav@localhost ~] $ mocp FATAL_ERROR: TiMidity-Plugin: Error processing TiMidity-Configuration! Configuration file is: <default>

Forums:

How do you define TiMidity_Config in your MOC config file?

Nothing, Its commented out.
I initially added, path to the timidity.cfg TiMidity_Config = ~/.moc/timidity.cfg but then moc would not start, even in the .moc folder, Same error. So I commented it out so atleast MOC would start when I cd into the .moc folder.

timidity.cfg is file copied from /etc/timidity++.cfg . In fedora 26, I could only find "libtimidity++ and timidity++" available for install, and turns out, after install, there was /etc/timidity.cfg which was symlink to /etc/timidity++.cfg .

I have already tried all combinations in moc config file. None of it worked.

# TiMidity_Config = ~/.moc/timidity.cfg # TiMidity_Config = ~/.moc/timidity++.cfg # TiMidity_Config = /etc/timidity++.cfg # TiMidity_Config = /etc/timidity.cfg

You could try setting:

TiMidity_Config = no

as a workaround for annoying startup path.

Thanks, this worked.

Also last night I tried using "/home/<username>/.moc" instead of "~/.moc" for the path which also works. Looks like it had issue expanding '~' sign to full path. Still doesn't explain why "/etc/" path didn't worked.

Just wanted to tell you in case it helped. This issue is only in recent F26, It wasn't there in F25. Neways thanks, I have set it to "no" and it works great.

The path handling should be transparent to MOC, so maybe that is a bug in libtimidity itself?

There are other options for TiMidity_Config, check them out in config.example if you would like to change it in the future.

Solution:
(~/.moc/config)
TiMidity_Config = /etc/timidity.cfg

optionally:
MOCDir = ~/.cache/moc