-
Notifications
You must be signed in to change notification settings - Fork 168
Expand file tree
/
Copy pathcustom_actions_discimage_mounter.sh
More file actions
executable file
·35 lines (27 loc) · 1.08 KB
/
custom_actions_discimage_mounter.sh
File metadata and controls
executable file
·35 lines (27 loc) · 1.08 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
#!/bin/bash
# _ _ _ _
# __ _ ___ | |_| |__ | | ___| |_ _ _
# / _` |/ _ \| __| '_ \| |/ _ \ __| | | |
#| (_| | (_) | |_| |_) | | __/ |_| |_| |
# \__, |\___/ \__|_.__/|_|\___|\__|\__,_|
# |___/
# https://www.youtube.com/user/gotbletu
# https://twitter.com/gotbletu
# https://plus.google.com/+gotbletu
# https://github.com/gotbletu
# gotbletu@gmail.com
# Tutorial video: https://www.youtube.com/watch?v=bJkDGWoACtk
# Custom Actions that can be used on any File Manager with Custom Actions Support
# This script is to mount standard disc image files such as iso|bin|nrg|mdf|img without sudo permissions
# Requirements: fuseiso
# thunar custom actions
# command: /path/to/script %N
# alternative command: bash /path/to/script %N
# note: %N is the selected filenames (without paths)
# conditions: Other files
# file pattern: *.iso;*.ISO;*.bin;*.BIN;*.nrg;*.NRG;*.mdf;*.MDF;*.img;*.IMG
myArray=( "$@" )
for arg in "${myArray[@]}"; do
fuseiso -n -p "$arg" "/tmp/$arg"
xdg-open "/tmp/$arg"
done