VirtualBox

Changeset 108067 in vbox


Ignore:
Timestamp:
Feb 5, 2025 11:35:39 AM (2 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167347
Message:

Additions: Installer: Linux: Fix installation script for systems which do not have X.org installed, bugref:10859.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/installer/vboxadd-x11.sh

    r106061 r108067  
    261261        ps -Af | grep -q '[X]org' || ${MODPROBE} -q vboxvideo
    262262    fi
     263
     264    # Our logging code generates some glue code on 32-bit systems.  At least F10
     265    # needs a rule to allow this.  Send all output to /dev/null in case this is
     266    # completely irrelevant on the target system.
     267    # chcon is needed on old Fedora/Redhat systems.  No one remembers which.
     268    chcon -t unconfined_execmem_exec_t '/usr/bin/VBoxClient' > /dev/null 2>&1
     269    semanage fcontext -a -t unconfined_execmem_exec_t '/usr/bin/VBoxClient' > /dev/null 2>&1
     270
     271    # And set up VBoxClient to start when the X session does
     272    install_x11_startup_app "${lib_dir}/98vboxadd-xclient" "${lib_dir}/vboxclient.desktop" VBoxClient VBoxClient-all ||
     273        fail "Failed to set up VBoxClient to start automatically."
     274    ln -s "${lib_dir}/98vboxadd-xclient" /usr/bin/VBoxClient-all 2>/dev/null
    263275
    264276    test -z "$x_version" -o -z "$modules_dir" &&
     
    480492    esac
    481493
    482     # Our logging code generates some glue code on 32-bit systems.  At least F10
    483     # needs a rule to allow this.  Send all output to /dev/null in case this is
    484     # completely irrelevant on the target system.
    485     # chcon is needed on old Fedora/Redhat systems.  No one remembers which.
    486     chcon -t unconfined_execmem_exec_t '/usr/bin/VBoxClient' > /dev/null 2>&1
    487     semanage fcontext -a -t unconfined_execmem_exec_t '/usr/bin/VBoxClient' > /dev/null 2>&1
    488 
    489     # And set up VBoxClient to start when the X session does
    490     install_x11_startup_app "${lib_dir}/98vboxadd-xclient" "${lib_dir}/vboxclient.desktop" VBoxClient VBoxClient-all ||
    491         fail "Failed to set up VBoxClient to start automatically."
    492     ln -s "${lib_dir}/98vboxadd-xclient" /usr/bin/VBoxClient-all 2>/dev/null
    493494    case "${x_version}" in 4.* | 6.* | 7.* | 1.?.* | 1.1* )
    494495        setup_opengl
    495496    esac
    496     # Try enabling VMSVGA drm device resizing.
    497     #VBoxClient --vmsvga
    498497}
    499498
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette