-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuserSoftware
More file actions
63 lines (54 loc) · 1.58 KB
/
userSoftware
File metadata and controls
63 lines (54 loc) · 1.58 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
# Liste des applications à installer
apps=(
"org.onlyoffice.desktopeditors"
"org.videolan.VLC"
"com.obsproject.Studio"
"fm.reaper.Reaper"
"ch.theologeek.Manuskript"
"com.tominlab.wonderpen"
"com.google.Chrome"
"com.brave.Browser"
"com.discordapp.Discord"
"com.skype.Client"
"nz.mega.MEGAsync"
"com.mattjakeman.ExtensionManager"
"com.vixalien.sticky"
"org.gimp.GIMP"
"com.jgraph.drawio.desktop"
)
# Fonction pour afficher le menu
show_menu() {
echo "-----------------------------------"
echo "Flatpak Application Installer Script"
echo "-----------------------------------"
echo "This script will install the following applications:"
for app in "${apps[@]}"; do
echo "- $app"
done
echo "-----------------------------------"
}
# Fonction pour installer une application si elle n'est pas déjà installée
install_app() {
app_id=$1
if flatpak list | grep -q "$app_id"; then
echo "$app_id is already installed."
else
echo "Installing $app_id..."
flatpak install flathub "$app_id" -y
if [ $? -eq 0 ]; then
echo "$app_id installed successfully."
else
echo "Failed to install $app_id."
fi
fi
}
# Afficher le menu
show_menu
# Ajouter le dépôt Flathub si ce n'est pas déjà fait
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
# Installer chaque application de la liste
for app in "${apps[@]}"; do
install_app "$app"
done
echo "All installations attempted."