Skip to content

Commit

Permalink
Merge pull request #36 from mandian-lx/3.0
Browse files Browse the repository at this point in the history
Fix clamares window in install mode
  • Loading branch information
tpgxyz committed Nov 18, 2017
2 parents e2b02f0 + 498648e commit e0429b2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
16 changes: 15 additions & 1 deletion calamares-install-setup
Expand Up @@ -26,8 +26,22 @@ if grep -q '\bsystemd.unit=calamares.target\b' /proc/cmdline; then
# (tpg) fix VirtualBox screen too small for calamares in install mode
grep -iq "VirtualBox" "/sys/devices/virtual/dmi/id/product_name" && xrandr -s 1024x768

# openbox config file to start clamares window undecorated and maximized in install mode
mkdir -p /root/.config/openbox
cp -fa /etc/xdg/openbox/rc.xml /etc/xdg/openbox/rc-install.xml
sed -i -e '/<\/applications>/ i \
<application name="calamares" \
class="Calamares" \
title="OpenMandriva Lx Installer" \
type="normal"> \
<decor>no</decor> \
<focus>yes</focus> \
<fullscreen>yes</fullscreen> \
<!--maximized>true</maximized--> \
</application>' /etc/xdg/openbox/rc-install.xml

if [ -x /usr/bin/openbox ]; then
/usr/bin/openbox &
/usr/bin/openbox --config-file /etc/xdg/openbox/rc-install.xml &
else
echo "openbox not found. Exiting."
sleep 30
Expand Down
2 changes: 1 addition & 1 deletion calamares.spec
Expand Up @@ -5,7 +5,7 @@
Summary: Distribution-independent installer framework
Name: calamares
Version: 3.1.8
Release: 2
Release: 3
Group: System/Configuration/Other
License: GPLv3+
URL: http://calamares.io/
Expand Down

0 comments on commit e0429b2

Please sign in to comment.