#!/bin/bash 
##################################
#  Author1: Bruno Goncalves (www.biglinux.com.br) 
#  Author2: Barnabé di Kartola
#  Author3: Rafael Ruscher (rruscher@gmail.com)  
#  Date:    2023/10/28 
#  
#  Description: BigLinux Snapshot Detect and Restore 
#  
# Licensed by GPL V2 or greater
##################################

# if grep -q 'org.biglinux.batteryandperformance' ~/.config/plasma-org.kde.plasma.desktop-appletsrc &&  [[ -e /usr/sbin/kwriteconfig6 ]] || grep -q '1' ~/.config/enable_latte 2> /dev/null &&  [[ -e /usr/sbin/kwriteconfig6 ]]; then
#     /usr/share/bigbashview/apps/biglinux-themes-gui/after-plasma6-update-dialog.sh
# fi

# if [[ ! -e "$HOME/.local/share/konsole/BigLinux Dark.colorscheme" ]]; then
#     cp "/etc/skel/.local/share/konsole/BigLinux Dark.colorscheme" "$HOME/.local/share/konsole/BigLinux Dark.colorscheme"
# fi
# 
# if [[ ! -e "$HOME/.local/share/konsole/Bash.profile" ]]; then
#     cp "/etc/skel/.local/share/konsole/Bash.profile" "$HOME/.local/share/konsole/Bash.profile"
# fi


if grep -q timeshift /proc/cmdline; then
    #Translation
    export TEXTDOMAINDIR="/usr/share/locale"
    export TEXTDOMAIN=grub-btrfs-timeshift

    Title=$"BigLinux Snapshot Detect"

    cd /usr/share/bigbashview/bcc/apps/biglinux-snapshot-detect/

    bbv -s 580x380 -w framelesstop -c transparent index.sh.htm -n "$Title" -i /usr/share/icons/biglinux-icons-material/scalable/apps/timeshift.svg
else
    echo $"Snapshot não encontrado!"
fi 
