#1473 xchat can't browse default sound file folder

open
nobody
None
5
2010-09-07
2010-09-07
Anonymous
No

XChat 2.8.6
Linux 2.6.31-22-generic [i686/630.64MHz]
Charset: UTF-8 Renderer: Pango
Compiled: Aug 6 2009

preferences>sounds shows ~/.xchat2/sounds as the default sound file folder

The main (only?) way to pick a sound file for an event is to preferences>sound>browse but the browser can't see the default sound file folder because its name starts with a period and is hidden as far as the file browser knows.

Nautilus (the ubuntu default file browser if that's what it's using) is set to to show hidden and backup files by default.

Discussion

  • Richard Hitt
    Richard Hitt
    2010-09-07

    The following patch will fix this problem.

    --- WORKxchat/src/fe-gtk/setup.c (revision 1451)
    +++ WORKxchat/src/fe-gtk/setup.c (working copy)
    @@ -1461,7 +1461,8 @@
    static void
    setup_snd_browse_cb (GtkWidget *button, GtkEntry *entry)
    {
    - gtkutil_file_req (_("Select a sound file"), setup_snd_filereq_cb, entry, NULL, 0);
    + mkdir_utf8 (prefs.sounddir);
    + gtkutil_file_req (_("Select a sound file"), setup_snd_filereq_cb, entry, prefs.sounddir, FRF_FILTERISINITIAL);
    }

    static void