Skip to content

Commit

Permalink
Adds flag to disable window borders
Browse files Browse the repository at this point in the history
Some applications on Windows (like SumatraPDF) use "Client Side Decoration",adding the linux native Window Borders these apps will hide options in the toolbar
  • Loading branch information
sudo-give-me-coffee committed Sep 27, 2020
1 parent 82fee58 commit 360d159
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/WineAppRun.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ HERE="$(dirname "$(readlink -f "${0}")")"
}

export WINEARCH=win32
export WINEPREFIX="${XDG_CONFIG_HOME}/§bottle"
export WINEPREFIX="${XDG_CONFIG_HOME}/SumatraPDF"


# Some Languages uses symbols that breakes Wine
Expand All @@ -42,7 +42,7 @@ done

[ ! -f "${WINEPREFIX}/system.reg" ] && {
TODAY="$(date '+%Y%m%d')"
cp "${HERE}/default.reg" "${WINEPREFIX}/"
cp "${HERE}/default.reg" --no-clobber "${WINEPREFIX}/"
sed -i "s/{Install date here}/\"InstallDate\"=\"${TODAY}\"/g" "${WINEPREFIX}/default.reg"

mkdir -p "${WINEPREFIX}/drive_c/users/${USER}/"
Expand Down
4 changes: 4 additions & 0 deletions flags/disable-window-decoration.flag
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

cp --no-clobber "${HERE}/default.reg" "${WINEPREFIX}/"
echo '[HKEY_CURRENT_USER\Software\Wine\X11 Driver]' >> "${WINEPREFIX}/default.reg"
echo '"Decorated"="N"' >> "${WINEPREFIX}/default.reg"

0 comments on commit 360d159

Please sign in to comment.