summaryrefslogtreecommitdiffstats
path: root/source/l/qt6/profile.d/qt6.csh
blob: 75afefbb7fe9631a2ed99089b22eec42592ad77f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/csh
# Environment path variables for the Qt package:
if ( ! $?QT6DIR ) then
    # It's best to use the generic directory to avoid
    # compiling in a version-containing path:
    if ( -d /usr/lib@LIBDIRSUFFIX@/qt6 ) then
        setenv QT6DIR /usr/lib@LIBDIRSUFFIX@/qt6
    else
        # Find the newest Qt directory and set $QT6DIR to that:
        foreach qtd ( /usr/lib@LIBDIRSUFFIX@/qt6-* )
            if ( -d $qtd ) then
                setenv QT6DIR $qtd
            endif
        end
    endif
endif
set path = ( $path $QT6DIR/bin )
# Unfortunately Chromium and derived projects (including QtWebEngine) seem
# to be suffering some bitrot when it comes to 32-bit support, so we are
# forced to disable the seccomp filter sandbox on 32-bit or else all of these
# applications crash. If anyone has a patch that gets these things running on
# 32-bit without this workaround, please let volkerdi or alienBOB know, or
# post your solution on LQ. Thanks. :-)
file /bin/cat | grep -wq 32-bit
if ( "$?" == "0" ) then
  setenv QTWEBENGINE_CHROMIUM_FLAGS "--disable-seccomp-filter-sandbox"
endif