mono 3.10 on slackware 64 bit

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


System.TypeInitializationException: An exception was thrown by the type initializer for Mono.Unix.Native.Syscall —> System.DllNotFoundException: /usr/lib/
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 —


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


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


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][/cci_bash] inside [cci_bash]~/.local/share/applications/[/cci_bash] with the following content:

[Desktop Entry]
Exec=/usr/local/bin/ %u

After that run [cci_bash]kbuildsycoca4[/cci_bash]