Inference script files.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
scr/chromium-profile-create.sh

33 lines
1023 B

#!/usr/bin/env sh
# Copyright 2022 Inference
# 0.0.0.0
# Chromium profile name.
echo "Enter Chromium profile name (no spaces):"
echo ""
read PRF
# Chromium profile friendly name.
echo "Enter Chromium profile friendly name:"
echo ""
read FRN
# Create Chromium profile.
mkdir $HOME/.config/chromium/${PRF}
echo "[Desktop Entry]" >\
$HOME/.local/share/applications/chromium-${PRF}.desktop
echo "Name=Chromium (${FRN})" >>\
$HOME/.local/share/applications/chromium-${PRF}.desktop
echo "Comment=" >> $HOME/.local/share/applications/chromium-${PRF}.desktop
echo "Exec=chromium --user-data-dir=$HOME/.config/chromium/${PRF}" >>\
$HOME/.local/share/applications/chromium-${PRF}.desktop
echo "Terminal=false" >>\
$HOME/.local/share/applications/chromium-${PRF}.desktop
echo "Type=Application" >>\
$HOME/.local/share/applications/chromium-${PRF}.desktop
echo "Icon=chromium" >> $HOME/.local/share/applications/chromium-${PRF}.desktop
echo "Categories=Network;" >>\
$HOME/.local/share/applications/chromium-${PRF}.desktop