added name attrib and try catch guard, cleaned up configs

This commit is contained in:
2023-02-21 16:27:44 -06:00
parent 3e0b79551a
commit aa0d738ced
12 changed files with 153 additions and 5 deletions

28
user_config/bin/bulkr Executable file
View File

@@ -0,0 +1,28 @@
#!/bin/bash
# . CONFIG.sh
# set -o xtrace ## To debug scripts
# set -o errexit ## To exit on error
# set -o errunset ## To exit if a variable is referenced but not set
function main() {
call_path=`pwd`
path=""
if [[ ! "${1::1}" == /* ]]; then
path="${call_path}/${1}"
else
path="${1}"
fi
if [ ! -d "${path}" ]; then
echo "BulkR: Path given not a directory..."
exit 1
fi
cd "/opt/"
python ./bulkr.zip "${path}"
}
main "$@";

View File

@@ -0,0 +1,10 @@
[Desktop Entry]
Name=BulkR
GenericName=Bulk Renamer
Comment=Bulk file renaming utility.
Exec=python /bin/bulkr %f
Icon=/usr/share/bulkr/bulkr.png
Type=Application
StartupNotify=true
Categories=System;FileTools;Utility;Core;GTK;FileManager;
Terminal=false