aboutsummaryrefslogtreecommitdiffstats
path: root/coin/pre-provisioning/qtci-linux-RHEL-9.2-x86_64/01-disable-automounting.sh
blob: 645f9f429b0741552d15ed1b82b3714caebd7c06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env bash
# Copyright (C) 2023 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only

set -ex

sudo tee -a /etc/dconf/db/local.d/00-media-automount <<"EOF"
[org/gnome/desktop/media-handling]
automount=false
automount-open=false
EOF

sudo dconf update