added name attrib and try catch guard, cleaned up configs
This commit is contained in:
28
user_config/bin/bulkr
Executable file
28
user_config/bin/bulkr
Executable 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 "$@";
|
10
user_config/usr/applications/bulkr.desktop
Executable file
10
user_config/usr/applications/bulkr.desktop
Executable 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
|
Reference in New Issue
Block a user