mono 3.10 on slackware 64 bit

I installed mono using sbopkg and found the following issue while trying to run keepass:

[cceN_bash]

System.TypeInitializationException: An exception was thrown by the type initializer for Mono.Unix.Native.Syscall —> System.DllNotFoundException: /usr/lib/libMonoPosixHelper.so
at (wrapper managed-to-native) Mono.Unix.Native.Syscall:get_at_fdcwd ()
at Mono.Unix.Native.Syscall..cctor () [0x00000] in <filename unknown>:0
— End of inner exception stack trace —

[/cceN_bash]

The fix was to edit [cci]/etc/mono/config[/cci] and remove the [cci]/usr/lib/[/cci] path from the [cci]libMonoPosixHelper.so[/cci] definition so that it looks like this:

[cceN_xml]

<dllmap dll=”MonoPosixHelper” target=”libMonoPosixHelper.so” os=”!windows” />

[/cceN_xml]

Switched to chrome but magnet links open with kTorrent instead of custom script

On one of my kde workstations I switched from firefox to chrome. One issue I found was that I have a custom script that takes magnet links and adds them to my NAS server instead of opening them locally. Chrome insisted on opening them with ktorrent instead of my custom script. The fix is to create a file [cci_bash]torrent.sh.desktop[/cci_bash] inside [cci_bash]~/.local/share/applications/[/cci_bash] with the following content:

[ccNe_bash]
[Desktop Entry]
Type=Application
Exec=/usr/local/bin/torrent.sh %u
MimeType=x-scheme-handler/magnet;
Name=torrent.sh
Icon=
NoDisplay=true
[/ccNe_bash]

After that run [cci_bash]kbuildsycoca4[/cci_bash]