Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix clamares window in install mode #36

Merged
merged 2 commits into from Nov 18, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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