-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·1199 lines (1071 loc) · 36.8 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·1199 lines (1071 loc) · 36.8 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#!/usr/bin/env bash
# ⚡ Aero Linux — 1-Command Universal Installer
# Installs the Aero CLI, GTK3 Control Center, and Desktop configs system-wide.
set -e
CYAN='\033[0;36m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
RED='\033[0;31m'
NC='\033[0m' # No Color
echo -e "${CYAN}"
echo " ___ ______ ____ ____ __ _____ __ ___ __ __"
echo " / | / ____// __ \/ __ \ / / / _/ | / / / / / / |/ /"
echo " / /| | / __/ / /_/ / / / / / / / / | \| / / / / /|_/ / "
echo " / ___ |/ /___ / _, _/ /_/ / / /____/ / | \ / /_/ / / / / "
echo "/_/ |_/_____//_/ |_|\____/ /_____/___/ |_|\_/\____/_/ /_/ "
echo -e "${NC}"
echo -e "${CYAN}⚡ Aero Linux 1.4-Supernova — Universal System Installer${NC}"
echo -e "${YELLOW}──────────────────────────────────────────────────────────────────────────${NC}"
# Detect installation directory
INSTALL_DIR="${HOME}/.local/share/aero-linux"
BIN_DIR="${HOME}/.local/bin"
mkdir -p "${INSTALL_DIR}"
mkdir -p "${BIN_DIR}"
mkdir -p "${HOME}/.local/share/applications"
# Check if installing from local repo or cloning from GitHub
REPO_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
if [ -d "${REPO_DIR}/packages/aero-cli" ]; then
echo -e "${GREEN}• Copying Aero packages from local repository...${NC}"
cp -r "${REPO_DIR}/packages" "${INSTALL_DIR}/"
cp -r "${REPO_DIR}/desktop" "${INSTALL_DIR}/" 2>/dev/null || true
cp -r "${REPO_DIR}/build" "${INSTALL_DIR}/" 2>/dev/null || true
else
echo -e "${GREEN}• Downloading latest Aero Linux core packages from GitHub...${NC}"
if command -v git >/dev/null 2>&1; then
rm -rf "${INSTALL_DIR}/repo"
git clone --depth 1 https://github.com/ronitgupta138/aero-linux.git "${INSTALL_DIR}/repo"
cp -r "${INSTALL_DIR}/repo/packages" "${INSTALL_DIR}/"
cp -r "${INSTALL_DIR}/repo/desktop" "${INSTALL_DIR}/" 2>/dev/null || true
cp -r "${INSTALL_DIR}/repo/build" "${INSTALL_DIR}/" 2>/dev/null || true
rm -rf "${INSTALL_DIR}/repo"
else
echo -e "${RED}❌ Git is required to clone Aero Linux. Please install git.${NC}"
exit 1
fi
fi
# Create global executable wrapper for aero CLI
echo -e "${GREEN}• Installing global 'aero' command into ${BIN_DIR}/aero...${NC}"
cat << 'EOF' > "${BIN_DIR}/aero"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-cli"
export PYTHONPATH="${AERO_HOME}:${PYTHONPATH}"
exec python3 "${AERO_HOME}/bin/aero" "$@"
EOF
chmod +x "${BIN_DIR}/aero"
# Create global executable wrapper for aero-welcome GUI
cat << 'EOF' > "${BIN_DIR}/aero-welcome"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-welcome" "$@"
EOF
chmod +x "${BIN_DIR}/aero-welcome"
# Create global executable wrapper for aero-quick-settings GUI
cat << 'EOF' > "${BIN_DIR}/aero-quick-settings"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-quick-settings" "$@"
EOF
chmod +x "${BIN_DIR}/aero-quick-settings"
# Create global executable wrapper for aero-monitor GUI
cat << 'EOF' > "${BIN_DIR}/aero-monitor"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-monitor" "$@"
EOF
chmod +x "${BIN_DIR}/aero-monitor"
# Create global executable wrapper for aero-updater GUI
cat << 'EOF' > "${BIN_DIR}/aero-updater"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-updater" "$@"
EOF
chmod +x "${BIN_DIR}/aero-updater"
# Create global executable wrapper for aero-wifi GUI
cat << 'EOF' > "${BIN_DIR}/aero-wifi"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-wifi" "$@"
EOF
chmod +x "${BIN_DIR}/aero-wifi"
# Create global executable wrapper for aero-snapshot-gui
cat << 'EOF' > "${BIN_DIR}/aero-snapshot-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-snapshot-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-snapshot-gui"
# Create global executable wrapper for aero-bluetooth GUI
cat << 'EOF' > "${BIN_DIR}/aero-bluetooth"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-bluetooth" "$@"
EOF
chmod +x "${BIN_DIR}/aero-bluetooth"
# Create global executable wrapper for aero-audio GUI
cat << 'EOF' > "${BIN_DIR}/aero-audio"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-audio" "$@"
EOF
chmod +x "${BIN_DIR}/aero-audio"
# Create global executable wrapper for aero-displays GUI
cat << 'EOF' > "${BIN_DIR}/aero-displays"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-displays" "$@"
EOF
chmod +x "${BIN_DIR}/aero-displays"
# Create global executable wrapper for aero-spotlight GUI
cat << 'EOF' > "${BIN_DIR}/aero-spotlight"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-spotlight" "$@"
EOF
chmod +x "${BIN_DIR}/aero-spotlight"
# Create global executable wrapper for aero-gamehub GUI
cat << 'EOF' > "${BIN_DIR}/aero-gamehub"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-gamehub" "$@"
EOF
chmod +x "${BIN_DIR}/aero-gamehub"
# Create global executable wrapper for aero-connect-gui
cat << 'EOF' > "${BIN_DIR}/aero-connect-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-connect-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-connect-gui"
# Create global executable wrapper for aero-power-gui
cat << 'EOF' > "${BIN_DIR}/aero-power-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-power-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-power-gui"
# Create global executable wrapper for aero-nightlight-gui
cat << 'EOF' > "${BIN_DIR}/aero-nightlight-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-nightlight-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-nightlight-gui"
# Create global executable wrapper for aero-theme-gui
cat << 'EOF' > "${BIN_DIR}/aero-theme-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-theme-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-theme-gui"
# Create global executable wrapper for aero-cleaner-gui
cat << 'EOF' > "${BIN_DIR}/aero-cleaner-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-cleaner-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-cleaner-gui"
# Create global executable wrapper for aero-vault-gui
cat << 'EOF' > "${BIN_DIR}/aero-vault-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-vault-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-vault-gui"
# Create global executable wrapper for aero-about-gui
cat << 'EOF' > "${BIN_DIR}/aero-about"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-about-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-about"
# Create global executable wrapper for aero-screenshot-gui
cat << 'EOF' > "${BIN_DIR}/aero-screenshot"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-screenshot-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-screenshot"
# Create global executable wrapper for aero-repair-gui
cat << 'EOF' > "${BIN_DIR}/aero-repair-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-repair-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-repair-gui"
# Create global executable wrapper for aero-notes-gui
cat << 'EOF' > "${BIN_DIR}/aero-notes"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-notes-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-notes"
# Create global executable wrapper for aero-color-gui
cat << 'EOF' > "${BIN_DIR}/aero-color"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-color-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-color"
# Create global executable wrapper for aero-font-gui
cat << 'EOF' > "${BIN_DIR}/aero-font-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-font-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-font-gui"
# Create global executable wrapper for aero-ports-gui
cat << 'EOF' > "${BIN_DIR}/aero-ports-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-ports-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-ports-gui"
# Create global executable wrapper for aero-shortcuts-gui
cat << 'EOF' > "${BIN_DIR}/aero-shortcuts-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-shortcuts-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-shortcuts-gui"
# Create global executable wrapper for aero-flasher-gui
cat << 'EOF' > "${BIN_DIR}/aero-flasher-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-flasher-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-flasher-gui"
# Create global executable wrapper for aero-logs-gui
cat << 'EOF' > "${BIN_DIR}/aero-logs-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-logs-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-logs-gui"
# Create global executable wrapper for aero-services-gui
cat << 'EOF' > "${BIN_DIR}/aero-services-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-services-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-services-gui"
# Create global executable wrapper for aero-startup-gui
cat << 'EOF' > "${BIN_DIR}/aero-startup-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-startup-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-startup-gui"
# Create global executable wrapper for aero-sync-gui
cat << 'EOF' > "${BIN_DIR}/aero-sync-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-sync-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-sync-gui"
# Create global executable wrapper for aero-disk-gui
cat << 'EOF' > "${BIN_DIR}/aero-disk-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-disk-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-disk-gui"
# Create global executable wrapper for aero-speed-gui
cat << 'EOF' > "${BIN_DIR}/aero-speed-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-speed-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-speed-gui"
# Create global executable wrapper for aero-git-gui
cat << 'EOF' > "${BIN_DIR}/aero-git-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-git-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-git-gui"
# Create global executable wrapper for aero-firewall-gui
cat << 'EOF' > "${BIN_DIR}/aero-firewall-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-firewall-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-firewall-gui"
# Create global executable wrapper for aero-ssh-gui
cat << 'EOF' > "${BIN_DIR}/aero-ssh-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-ssh-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-ssh-gui"
# Create global executable wrapper for aero-ssl-gui
cat << 'EOF' > "${BIN_DIR}/aero-ssl-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-ssl-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-ssl-gui"
# Create global executable wrapper for aero-ai-gui
cat << 'EOF' > "${BIN_DIR}/aero-ai-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-ai-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-ai-gui"
# Create global executable wrapper for aero-workspaces-gui
cat << 'EOF' > "${BIN_DIR}/aero-workspaces-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-workspaces-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-workspaces-gui"
# Create global executable wrapper for aero-snapshots-gui
cat << 'EOF' > "${BIN_DIR}/aero-snapshots-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-snapshots-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-snapshots-gui"
# Create global executable wrapper for aero-docker-gui
cat << 'EOF' > "${BIN_DIR}/aero-docker-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-docker-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-docker-gui"
# Create global executable wrapper for aero-api-gui
cat << 'EOF' > "${BIN_DIR}/aero-api-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-api-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-api-gui"
# Create global executable wrapper for aero-env-gui
cat << 'EOF' > "${BIN_DIR}/aero-env-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-env-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-env-gui"
# Create global executable wrapper for aero-regex-gui
cat << 'EOF' > "${BIN_DIR}/aero-regex-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-regex-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-regex-gui"
# Create global executable wrapper for aero-db-gui
cat << 'EOF' > "${BIN_DIR}/aero-db-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-db-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-db-gui"
# Create global executable wrapper for aero-cron-gui
cat << 'EOF' > "${BIN_DIR}/aero-cron-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-cron-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-cron-gui"
# Create global executable wrapper for aero-crypto-gui
cat << 'EOF' > "${BIN_DIR}/aero-crypto-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-crypto-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-crypto-gui"
# Create global executable wrapper for aero-mock-gui
cat << 'EOF' > "${BIN_DIR}/aero-mock-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-mock-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-mock-gui"
# Create global executable wrapper for aero-deps-gui
cat << 'EOF' > "${BIN_DIR}/aero-deps-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-deps-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-deps-gui"
# Create global executable wrapper for aero-benchmark-gui
cat << 'EOF' > "${BIN_DIR}/aero-benchmark-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-benchmark-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-benchmark-gui"
# Create global executable wrapper for aero-diff-gui
cat << 'EOF' > "${BIN_DIR}/aero-diff-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-diff-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-diff-gui"
# Create global executable wrapper for aero-qr-gui
cat << 'EOF' > "${BIN_DIR}/aero-qr-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-qr-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-qr-gui"
# Create global executable wrapper for aero-recorder-gui
cat << 'EOF' > "${BIN_DIR}/aero-recorder-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-recorder-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-recorder-gui"
# Create global executable wrapper for aero-archive-gui
cat << 'EOF' > "${BIN_DIR}/aero-archive-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-archive-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-archive-gui"
# Create global executable wrapper for aero-markdown-gui
cat << 'EOF' > "${BIN_DIR}/aero-markdown-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-markdown-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-markdown-gui"
# Create global executable wrapper for aero-tunnel-gui
cat << 'EOF' > "${BIN_DIR}/aero-tunnel-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-tunnel-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-tunnel-gui"
# Create global executable wrapper for aero-sandbox-gui
cat << 'EOF' > "${BIN_DIR}/aero-sandbox-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-sandbox-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-sandbox-gui"
# Create global executable wrapper for aero-gpu-gui
cat << 'EOF' > "${BIN_DIR}/aero-gpu-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-gpu-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-gpu-gui"
# Create global executable wrapper for aero-gitgraph-gui
cat << 'EOF' > "${BIN_DIR}/aero-gitgraph-gui"
#!/usr/bin/env bash
AERO_HOME="${HOME}/.local/share/aero-linux/packages/aero-welcome"
exec python3 "${AERO_HOME}/bin/aero-gitgraph-gui" "$@"
EOF
chmod +x "${BIN_DIR}/aero-gitgraph-gui"
# Install Desktop Icon & Man Pages & Nemo File Manager Actions
mkdir -p "${HOME}/.local/share/icons/hicolor/scalable/apps"
mkdir -p "${HOME}/.local/share/man/man1"
mkdir -p "${HOME}/.local/share/nemo/actions"
cp "${INSTALL_DIR}/desktop/icons/aero-logo.svg" "${HOME}/.local/share/icons/hicolor/scalable/apps/aero.svg" 2>/dev/null || true
cp "${INSTALL_DIR}/docs/man/aero.1" "${HOME}/.local/share/man/man1/aero.1" 2>/dev/null || true
cp -r "${INSTALL_DIR}/desktop/configs/nemo-actions/"*.nemo_action "${HOME}/.local/share/nemo/actions/" 2>/dev/null || true
# Register desktop application icon in Start Menu
echo -e "${GREEN}• Creating Start Menu / Desktop Launcher entry...${NC}"
cat << EOF > "${HOME}/.local/share/applications/aero-welcome.desktop"
[Desktop Entry]
Name=Aero Control Center
Comment=Aero Linux Quick Setup & Telemetry GUI
Exec=${BIN_DIR}/aero-welcome
Icon=aero
Terminal=false
Type=Application
Categories=System;Settings;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-monitor.desktop"
[Desktop Entry]
Name=Aero System Monitor
Comment=Aero Linux Graphical CPU Waveform & Task Manager
Exec=${BIN_DIR}/aero-monitor
Icon=utilities-system-monitor
Terminal=false
Type=Application
Categories=System;Monitor;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-updater.desktop"
[Desktop Entry]
Name=Aero Update Manager
Comment=Aero Linux System & Package Updater GUI
Exec=${BIN_DIR}/aero-updater
Icon=system-software-update
Terminal=false
Type=Application
Categories=System;PackageManager;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-terminal.desktop"
[Desktop Entry]
Name=Aero Terminal
Comment=Aero Linux High-Performance GPU-Accelerated Terminal
Exec=alacritty -e ${BIN_DIR}/aero doctor
Icon=utilities-terminal
Terminal=false
Type=Application
Categories=System;TerminalEmulator;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-wifi.desktop"
[Desktop Entry]
Name=Aero Wi-Fi Center
Comment=Aero Linux Wireless & Network Manager
Exec=${BIN_DIR}/aero-wifi
Icon=network-wireless
Terminal=false
Type=Application
Categories=System;Settings;Network;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-snapshot.desktop"
[Desktop Entry]
Name=Aero TimeMachine
Comment=Aero Linux System Restore Points & Rollback
Exec=${BIN_DIR}/aero-snapshot-gui
Icon=system-software-update
Terminal=false
Type=Application
Categories=System;Utility;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-bluetooth.desktop"
[Desktop Entry]
Name=Aero Bluetooth Center
Comment=Aero Linux Bluetooth & Device Pairing Center
Exec=${BIN_DIR}/aero-bluetooth
Icon=bluetooth
Terminal=false
Type=Application
Categories=System;Settings;HardwareSettings;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-audio.desktop"
[Desktop Entry]
Name=Aero Sound Center
Comment=Aero Linux Audio Output Switcher & Mixer
Exec=${BIN_DIR}/aero-audio
Icon=audio-volume-high
Terminal=false
Type=Application
Categories=AudioVideo;Audio;Mixer;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-displays.desktop"
[Desktop Entry]
Name=Aero Displays & Scaling
Comment=Aero Linux Screen Resolution, Refresh Rate & HiDPI Manager
Exec=${BIN_DIR}/aero-displays
Icon=video-display
Terminal=false
Type=Application
Categories=System;Settings;HardwareSettings;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-spotlight.desktop"
[Desktop Entry]
Name=Aero Spotlight
Comment=Aero Linux Universal Raycast Search & Command Palette
Exec=${BIN_DIR}/aero-spotlight
Icon=system-search
Terminal=false
Type=Application
Categories=System;Utility;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-gamehub.desktop"
[Desktop Entry]
Name=Aero Game Hub
Comment=Aero Linux Proton & GameMode Optimizer
Exec=${BIN_DIR}/aero-gamehub
Icon=applications-games
Terminal=false
Type=Application
Categories=Game;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-connect.desktop"
[Desktop Entry]
Name=Aero Phone Link
Comment=Aero Linux Wireless Drop & Phone Link
Exec=${BIN_DIR}/aero-connect-gui
Icon=phone
Terminal=false
Type=Application
Categories=Network;Utility;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-power.desktop"
[Desktop Entry]
Name=Aero Battery & Thermals
Comment=Aero Linux Battery Care, Fan Curves & Power Profiles
Exec=${BIN_DIR}/aero-power-gui
Icon=battery
Terminal=false
Type=Application
Categories=System;Settings;HardwareSettings;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-nightlight.desktop"
[Desktop Entry]
Name=Aero Night Light
Comment=Aero Linux Blue Light & Color Temperature Studio
Exec=${BIN_DIR}/aero-nightlight-gui
Icon=display
Terminal=false
Type=Application
Categories=System;Settings;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-theme.desktop"
[Desktop Entry]
Name=Aero Theme Studio
Comment=Aero Linux Themes, Accent Colors & Wallpaper Generator
Exec=${BIN_DIR}/aero-theme-gui
Icon=preferences-desktop-theme
Terminal=false
Type=Application
Categories=System;Settings;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-cleaner.desktop"
[Desktop Entry]
Name=Aero System Cleaner
Comment=Aero Linux Disk Cleaner & Cache De-bloater
Exec=${BIN_DIR}/aero-cleaner-gui
Icon=user-trash
Terminal=false
Type=Application
Categories=System;Utility;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-vault.desktop"
[Desktop Entry]
Name=Aero Developer Vault
Comment=Aero Linux Encrypted Secrets & API Key Vault
Exec=${BIN_DIR}/aero-vault-gui
Icon=dialog-password
Terminal=false
Type=Application
Categories=Development;Security;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-about.desktop"
[Desktop Entry]
Name=About Aero Linux
Comment=Aero Linux System Information & Hardware Specifications
Exec=${BIN_DIR}/aero-about
Icon=help-about
Terminal=false
Type=Application
Categories=System;Utility;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-screenshot.desktop"
[Desktop Entry]
Name=Aero Screenshot Tool
Comment=Aero Linux Snip & Screen Capture Tool
Exec=${BIN_DIR}/aero-screenshot
Icon=applets-screenshooter
Terminal=false
Type=Application
Categories=Utility;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-repair.desktop"
[Desktop Entry]
Name=Aero Self-Repair Center
Comment=Aero Linux System Health, Package Locks & Network Healer
Exec=${BIN_DIR}/aero-repair-gui
Icon=system-software-update
Terminal=false
Type=Application
Categories=System;Utility;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-notes.desktop"
[Desktop Entry]
Name=Aero Scratchpad Notes
Comment=Aero Linux Developer Floating Markdown Scratchpad
Exec=${BIN_DIR}/aero-notes
Icon=accessories-text-editor
Terminal=false
Type=Application
Categories=Utility;TextEditor;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-color.desktop"
[Desktop Entry]
Name=Aero Color Picker
Comment=Aero Linux Pixel Color Dropper & HEX/RGB Studio
Exec=${BIN_DIR}/aero-color
Icon=color-picker
Terminal=false
Type=Application
Categories=Graphics;Utility;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-font.desktop"
[Desktop Entry]
Name=Aero Typography Studio
Comment=Aero Linux Font Manager & Ligature Previewer
Exec=${BIN_DIR}/aero-font-gui
Icon=font-x-generic
Terminal=false
Type=Application
Categories=Settings;DesktopSettings;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-ports.desktop"
[Desktop Entry]
Name=Aero Port Inspector
Comment=Aero Linux Dev Server & Listening Port Manager
Exec=${BIN_DIR}/aero-ports-gui
Icon=network-server
Terminal=false
Type=Application
Categories=Development;System;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-shortcuts.desktop"
[Desktop Entry]
Name=Aero Keyboard Shortcuts
Comment=Aero Linux Keyboard Shortcuts & Hotkey Guide
Exec=${BIN_DIR}/aero-shortcuts-gui
Icon=input-keyboard
Terminal=false
Type=Application
Categories=Utility;Help;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-flasher.desktop"
[Desktop Entry]
Name=Aero USB Flasher
Comment=Aero Linux Safe ISO & Live USB Creator
Exec=${BIN_DIR}/aero-flasher-gui
Icon=drive-removable-media
Terminal=false
Type=Application
Categories=System;Utility;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-logs.desktop"
[Desktop Entry]
Name=Aero System Logs
Comment=Aero Linux Live Journald & Kernel Diagnostic Viewer
Exec=${BIN_DIR}/aero-logs-gui
Icon=utilities-system-monitor
Terminal=false
Type=Application
Categories=System;Monitor;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-services.desktop"
[Desktop Entry]
Name=Aero Services Manager
Comment=Aero Linux Systemd Daemons & Background Services Manager
Exec=${BIN_DIR}/aero-services-gui
Icon=system-run
Terminal=false
Type=Application
Categories=System;Settings;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-startup.desktop"
[Desktop Entry]
Name=Aero Startup Applications
Comment=Aero Linux Login Autostart Programs Manager
Exec=${BIN_DIR}/aero-startup-gui
Icon=system-run
Terminal=false
Type=Application
Categories=Settings;DesktopSettings;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-sync.desktop"
[Desktop Entry]
Name=Aero Dotfiles Sync
Comment=Aero Linux Configs & Settings Cloud Sync
Exec=${BIN_DIR}/aero-sync-gui
Icon=folder-cloud
Terminal=false
Type=Application
Categories=Utility;Settings;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-disk.desktop"
[Desktop Entry]
Name=Aero Disk Visualizer
Comment=Aero Linux Storage & Developer Artifact Cleaner
Exec=${BIN_DIR}/aero-disk-gui
Icon=drive-harddisk
Terminal=false
Type=Application
Categories=System;Utility;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-speed.desktop"
[Desktop Entry]
Name=Aero Network Speed & Latency
Comment=Aero Linux Latency Profiler & DNS Speed Tester
Exec=${BIN_DIR}/aero-speed-gui
Icon=network-wireless
Terminal=false
Type=Application
Categories=System;Network;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-git.desktop"
[Desktop Entry]
Name=Aero Git Dashboard
Comment=Aero Linux Local Git Workspace & Repository Monitor
Exec=${BIN_DIR}/aero-git-gui
Icon=git
Terminal=false
Type=Application
Categories=Development;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-firewall.desktop"
[Desktop Entry]
Name=Aero Firewall & Shield
Comment=Aero Linux UFW Firewall & Port Rules Studio
Exec=${BIN_DIR}/aero-firewall-gui
Icon=security-high
Terminal=false
Type=Application
Categories=System;Security;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-ssh.desktop"
[Desktop Entry]
Name=Aero SSH & Remote Servers
Comment=Aero Linux SSH Keys Generator & Server Bookmarks
Exec=${BIN_DIR}/aero-ssh-gui
Icon=utilities-terminal
Terminal=false
Type=Application
Categories=Network;Development;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-ssl.desktop"
[Desktop Entry]
Name=Aero SSL & Dev Certs
Comment=Aero Linux Local HTTPS SSL/TLS Certificates Studio
Exec=${BIN_DIR}/aero-ssl-gui
Icon=security-medium
Terminal=false
Type=Application
Categories=Development;Security;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-ai.desktop"
[Desktop Entry]
Name=Aero Local AI Studio
Comment=Aero Linux Offline LLM Model Serving & Assistant
Exec=${BIN_DIR}/aero-ai-gui
Icon=system-search
Terminal=false
Type=Application
Categories=Development;ArtificialIntelligence;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-workspaces.desktop"
[Desktop Entry]
Name=Aero Workspaces & Desktops
Comment=Aero Linux Virtual Workspaces & Window Organizer
Exec=${BIN_DIR}/aero-workspaces-gui
Icon=preferences-desktop-workspaces
Terminal=false
Type=Application
Categories=Settings;DesktopSettings;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-snapshots.desktop"
[Desktop Entry]
Name=Aero TimeMachine Snapshots
Comment=Aero Linux System Restore Points & TimeMachine Backups
Exec=${BIN_DIR}/aero-snapshots-gui
Icon=document-revert
Terminal=false
Type=Application
Categories=System;Utility;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-docker.desktop"
[Desktop Entry]
Name=Aero Docker & Containers
Comment=Aero Linux Docker Container & Microservices Studio
Exec=${BIN_DIR}/aero-docker-gui
Icon=docker
Terminal=false
Type=Application
Categories=Development;System;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-api.desktop"
[Desktop Entry]
Name=Aero API & HTTP Studio
Comment=Aero Linux REST, GraphQL & HTTP Microservices Studio
Exec=${BIN_DIR}/aero-api-gui
Icon=network-server
Terminal=false
Type=Application
Categories=Development;Network;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-env.desktop"
[Desktop Entry]
Name=Aero Environment Studio
Comment=Aero Linux Project .env & Secrets Studio
Exec=${BIN_DIR}/aero-env-gui
Icon=security-high
Terminal=false
Type=Application
Categories=Development;Settings;GTK;
EOF
cat << EOF > "${HOME}/.local/share/applications/aero-regex.desktop"