Changeset 263966 in webkit


Ignore:
Timestamp:
Jul 6, 2020 5:13:08 AM (4 years ago)
Author:
commit-queue@webkit.org
Message:

BubblewrapLauncher.cpp: Add paths required for sndio
https://bugs.webkit.org/show_bug.cgi?id=212524

Information about the paths currently ins't into the sndio
documentation but it can be found in this email:
http://www.sndio.org/arch/0077.html

Patch by Haelwenn (lanodan) Monnier <contact@hacktivis.me> on 2020-07-06
Reviewed by Adrian Perez de Castro.

Manually tested, there is currently no automatic tests for it

  • UIProcess/Launcher/glib/BubblewrapLauncher.cpp:

(WebKit::bindSndio):
(WebKit::bubblewrapSpawn):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r263964 r263966  
     12020-07-06  Haelwenn (lanodan) Monnier  <contact@hacktivis.me>
     2
     3        BubblewrapLauncher.cpp: Add paths required for sndio
     4        https://bugs.webkit.org/show_bug.cgi?id=212524
     5
     6        Information about the paths currently ins't into the sndio
     7        documentation but it can be found in this email:
     8        http://www.sndio.org/arch/0077.html
     9
     10        Reviewed by Adrian Perez de Castro.
     11
     12        Manually tested, there is currently no automatic tests for it
     13
     14        * UIProcess/Launcher/glib/BubblewrapLauncher.cpp:
     15        (WebKit::bindSndio):
     16        (WebKit::bubblewrapSpawn):
     17
    1182020-07-06  Carlos Garcia Campos  <cgarcia@igalia.com>
    219
  • trunk/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp

    r263899 r263966  
    380380    // This is the ultimate fallback to raw ALSA
    381381    bindIfExists(args, "/dev/snd", BindFlags::Device);
     382}
     383
     384static void bindSndio(Vector<CString>& args)
     385{
     386    bindIfExists(args, "/tmp/sndio", BindFlags::ReadWrite);
     387
     388    GUniquePtr<char> sndioUidDir(g_strdup_printf("/tmp/sndio-%d", getuid()));
     389    bindIfExists(args, sndioUidDir.get(), BindFlags::ReadWrite);
     390
     391    const char* homeDir = g_get_home_dir();
     392    GUniquePtr<char> sndioHomeDir(g_build_filename(homeDir, ".sndio", nullptr));
     393    bindIfExists(args, sndioHomeDir.get(), BindFlags::ReadWrite);
    382394}
    383395
     
    807819        // FIXME: We should move to Pipewire as soon as viable, Pulse doesn't restrict clients atm.
    808820        bindPulse(sandboxArgs);
     821        bindSndio(sandboxArgs);
    809822        bindFonts(sandboxArgs);
    810823        bindGStreamerData(sandboxArgs);
Note: See TracChangeset for help on using the changeset viewer.