
Mumble と Team Fortress 2 (TF2) はどちらも個別には正常に動作しますが、mumble-overlay を単独でも TF2 内でも動作させることができません。
Steam の TF2 のプロパティに次の起動オプションを設定してみましたが、どれも機能しませんでした。(注: 私は bumblebee と 64 ビット コンピューターも使用しています。)
mumble-overlay primusrun %command%
mumble-overlay primusrun %command% -nod3d9ex
mumble-overlay primusrun %command% -d3d9ex -32bit
LD_PRELOAD=/usr/lib/mumble/libmumble.so.1.2 primusrun %command%
TF2 はウィンドウ モードなので、TF2 に挿入されていない独自のオーバーレイを mumble が生成してくれると嬉しいです。
答え1
この修正は複合マネージャの変更に依存しており、一度に 1 つの複合マネージャしか使用できないため、複合マネージャのないシステムを既に使用していない限り、実行は困難です。LD_PRELOAD を任意の複合マネージャに適用することは可能だと思いますが、複合マネージャはすべての OS およびデスクトップ環境に固有のものです。また、OS に compton と修正を使用するように強制することもできると思いますが、これも OS/デスクトップ環境に固有のものです。
複合マネージャーがある場合は、次のセクションをスキップし、複合マネージャーがない場合は、次の手順に従います。
Install compton
Run the following command in your terminal and you will be all set, note that you must rerun this command every time you login, so I suggest putting this in your .bash_profile or .zprofile (if using ZSH).
LD_PRELOAD=/usr/lib/mumble/libmumble.so compton -CGb --backend glx --paint-on-overlay
The flags -CG disable shadow effects
The flag -b runs it in the background as a daemon
The flag --backend glx runs it using OpenGL
The flag --paint-on-overlay paints on X Composite overlay window instead of on root window. You can add the flag --vsync with an argument to enable vsync.
Run mumble. Because of the nature of the fix, you can start mumble after TF2 and still have the overlay show up. The overlay will appear whenever you are connected to a mumble server.
大多数のユーザーと同様に、OS にコンポジット マネージャーがバンドルされている場合、2 つのコンポジターを同時に実行できないため、このタスクはより複雑になります。この修正はかなり見苦しく、セットアップに時間がかかり、また、mumble オーバーレイを使用するたびにログアウトする必要があることに注意してください。次の手順は、このガイドから言い換えおよび変更したものです。
Install compton and openbox (you can optionally install obconf and obmenu, but they are not necessary)
Create the directory ~/.config/openbox if it does not exist
In that directory create a file called autostart
In that file, place the following (any line starting with a # is a comment and it will not be run)
# Starts compton and is necessary for the overlay to work, look at the above section on compton to decide what flags you want to use
LD_PRELOAD=/usr/lib/mumble/libmumble.so compton -CGb --backend glx --paint-on-overlay &
# Autostarts steam
steam &
# Autostarts mumble (comment out to stop mumble from automatically starting)
mumble &
# You also can place any program in here that you wish to start
# Use a & at the end of the name so that your computer does no wait until
# that program is fully started before it start the next program.
When you wish to play a game, logout of you account, and then select openbox as your desktop environment. This requires a login manager than supports multiple desktop environments. Most do, but it may require you to look around to find out how to switch desktop environments. If you are using startx/.xinitrc, make sure that you use exec openbox-session rather than exec openbox because exec openbox does not automatically load the autostart file.
To return to your normal desktop, logout of your account and then select your normal desktop environment from you login manager.