mirror of
https://github.com/Snigdha-OS/snigdhaos-blackbox.git
synced 2025-09-21 03:55:05 +02:00
🧹 chore(redir): application && re-organize files
This commit is contained in:
24
usr/lib/snigdhaos-blackbox/apply.sh
Normal file
24
usr/lib/snigdhaos-blackbox/apply.sh
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ -e "$1" ]; then
|
||||||
|
echo ""
|
||||||
|
echo "Preparing Setup..."
|
||||||
|
echo ""
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "Installing Packages! Please Wait..."
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
installable_packages=$(comm -12 <(pacman -Slq | sort) <(sed s/\\s/\\n/g - <$2 | sort))
|
||||||
|
sudo pacman -S --needed $installable_packages && rm $2 || { read -p "Error Occured! Press Enter to Return To Snigdha OS BlackBox"; exit; }
|
||||||
|
|
||||||
|
if [ -e "$3" ]; then
|
||||||
|
echo ""
|
||||||
|
echo "Enabling Services(If Any)"
|
||||||
|
echo ""
|
||||||
|
sudo bash - <$3
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
read -p "Press Enter To Return to Snigdha OS Blackbox."
|
11
usr/share/applications/snigdhaos-blackbox.desktop
Normal file
11
usr/share/applications/snigdhaos-blackbox.desktop
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/env xdg-open
|
||||||
|
[Desktop Entry]
|
||||||
|
Name=Snigdha OS Blackbox
|
||||||
|
Comment=
|
||||||
|
Encoding=UTF-8
|
||||||
|
Exec=snigdhaos-blackbox
|
||||||
|
Terminal=flase
|
||||||
|
Type=Application
|
||||||
|
Icon=snigdhaos-blackbox
|
||||||
|
Categories=System;SnigdhaOS-Setup;
|
||||||
|
NoDisplay=flase
|
Reference in New Issue
Block a user