Skip to content

Instantly share code, notes, and snippets.

@nneul
Created February 26, 2022 20:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nneul/1b4f98ecaac5c87603604d54ef3d6ffb to your computer and use it in GitHub Desktop.
Save nneul/1b4f98ecaac5c87603604d54ef3d6ffb to your computer and use it in GitHub Desktop.
Modify linux MS Teams installation to add titlebar / disable client side decorations
This is obviously an ugly little hack, but will return the ability to do windowshade or similar operations
if your window manager (XFce in my case) doesn't allow for forcing display of window frame/titlebar.
# run in teams/resources
cd /usr/share/teams/resources
if [ ! -e orig-app.asar ]; then
cp app.asar orig-app.asar;
fi
cp orig-app.asar app.asar
rm -rf asar-extracted
mkdir -p asar-extracted
(cd asar-extracted && asar extract ../app.asar .)
perl -pi -e 's|frame:!1|frame:1|go' asar-extracted/main.bundle.js
rm app.asar
asar pack asar-extracted app.asar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment