And to make live a tad easier, I created a custom action for Dolphin (in KDE), so I can right-click an .iso file and select 'isomount'. For this I created a file called /usr/share/kservices5/ServiceMenus/isomount.desktop with following content:
Code: Select all
[Desktop Entry]
Type=Service
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
MimeType=application/x-cd-image;
Actions=isomount;
X-KDE-AuthorizeAction=shell_access
[Desktop Action isomount]
TryExec=konsole
Exec=konsole -e bash -c 'isomount "${@}"; ANYKEY="Press any key to close"; ANYKEY=$(gettext -d mx-goodies "$ANYKEY"); echo; read -n 1 -s -r -p "$ANYKEY"' bash %F
Icon=emblem-mounted
Name=Isomount
Comment=mount iso file at /mnt/iso