Skip to content
Snippets Groups Projects
  • Ludovico de Nittis's avatar
    77f3acd4
    wrap-discord: Bind Discord RPC sockets · 77f3acd4
    Ludovico de Nittis authored
    
    Discord provides a mechanism called "Rich Presence" that allows games to
    synchronize their state with Discord, e.g. showing status information in
    the user's profile.
    
    To make this work from inside a Pressure vessel container, we need to
    bind-mount the Discord IPC sockets.
    They are expected to be called `discord-ipc-`, followed by a number that
    ranges from zero up to nine.
    They are usually located under `XDG_RUNTIME_DIR`, with `TMPDIR`, `TMP`,
    `TEMP` and `/tmp` used as fallback alternatives.
    
    Example games that are known to be using the Discord sockets are:
    VRChat, Among Us and osu!
    
    Signed-off-by: default avatarLudovico de Nittis <ludovico.denittis@collabora.com>
    77f3acd4
    History
    wrap-discord: Bind Discord RPC sockets
    Ludovico de Nittis authored
    
    Discord provides a mechanism called "Rich Presence" that allows games to
    synchronize their state with Discord, e.g. showing status information in
    the user's profile.
    
    To make this work from inside a Pressure vessel container, we need to
    bind-mount the Discord IPC sockets.
    They are expected to be called `discord-ipc-`, followed by a number that
    ranges from zero up to nine.
    They are usually located under `XDG_RUNTIME_DIR`, with `TMPDIR`, `TMP`,
    `TEMP` and `/tmp` used as fallback alternatives.
    
    Example games that are known to be using the Discord sockets are:
    VRChat, Among Us and osu!
    
    Signed-off-by: default avatarLudovico de Nittis <ludovico.denittis@collabora.com>
wrap-discord.h 1.31 KiB
/*
 * Copyright 2021-2023 Collabora Ltd.
 *
 * SPDX-License-Identifier: MIT
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice (including the next
 * paragraph) shall be included in all copies or substantial portions of the
 * Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 * DEALINGS IN THE SOFTWARE.
 */

#pragma once

#include <glib.h>

#include "libglnx.h"

#include "flatpak-bwrap-private.h"

void pv_wrap_add_discord_args (FlatpakBwrap *sharing_bwrap);