Redmine: Issueshttp://redmine.audacious-media-player.org/http://redmine.audacious-media-player.org/welcome/favicon.ico?15159353402020-08-22T12:02:29ZRedmine
Redmine Audacious - Feature #1017 (New): QT Global Hotkeys rework proposal and cross-platform supporthttp://redmine.audacious-media-player.org/issues/10172020-08-22T12:02:29ZDomen Mori
<p>I would like to rework QT global hotkeys plugin to also work on Windows and Mac (does audacious even work on mac)?</p>
<p>I would use this library: <a class="external" href="https://github.com/Skycoder42/QHotkey">https://github.com/Skycoder42/QHotkey</a></p>
<p>I wrote small PoC in my side and it works, it can be done. The way I used to integrate the library is copy source code files into the repository for QT hotkeys plugin. This way, no additional build / linking step is needed.</p>
<p>If I do the whole rework of plugin by adding this library, do you agree / will the PR be accepted?</p> Audacious - Feature #872 (Closed): Build song change plugin for WIndowshttp://redmine.audacious-media-player.org/issues/8722019-02-09T07:51:07ZDomen Mori
<p>I implemented song change for Windows, pull request was accepted.<br /><a class="external" href="https://github.com/audacious-media-player/audacious-plugins/pull/67">https://github.com/audacious-media-player/audacious-plugins/pull/67</a></p>
<p>Now, the plugin is missing in 3.10.1. I guess the packaging system didn't include .dll in distributable installer.</p> Audacious - Bug #823 (Closed): Audtool doesn't output UTF-8 on Windowshttp://redmine.audacious-media-player.org/issues/8232018-08-25T03:10:57ZDomen Mori
<p>This can be observed when output contains special characters. For example:<br /><pre>
$ audtool current-song
▒ank Rock - Nekaj Ve? - Ni Sre?e Brez Rock N Rolla
</pre><br />I found a simple fix, based on: <a class="external" href="https://stackoverflow.com/questions/43927373/force-utf-8-encoding-in-glibs-g-print">https://stackoverflow.com/questions/43927373/force-utf-8-encoding-in-glibs-g-print</a><br />Tried adding into audtool/main.c:<br /><pre><code class="c syntaxhl"><span class="CodeRay"><span class="preprocessor">#ifdef</span> WIN32
<span class="directive">void</span> g_print_no_convert(<span class="directive">const</span> gchar *buf)
{
fputs(buf, stdout);
}
<span class="preprocessor">#endif</span>
</span></code></pre></p>
<p>And inside main function:<br /><pre><code class="c syntaxhl"><span class="CodeRay"><span class="preprocessor">#ifdef</span> WIN32
g_set_print_handler(g_print_no_convert);
<span class="preprocessor">#endif</span>
</span></code></pre></p>
<p>After compiling with this fix, it works correctly:<br /><pre>
$ audtool current-song
Šank Rock - Nekaj Več - Ni Sreče Brez Rock N Rolla
</pre><br />I could submit a pull request, but as I am not very experienced in this type of programs and libraries, I am not sure if this will have negative implications on other parts of the program.</p>