ISO Mounter-Unmounter

Dolphin Service Menus

Source (required if based on other people's work): Add the source-code for this project on git.opendesktop.org

3
Score 60%
Description:

**DO NOT INSTALL with Dolphin Add-On Installer: just download and save the two files to the locations mentioned below.**

A service menu to mount and unmount iso files. It is based on KDE-Services (https://store.kde.org/p/998464/), namely on the commands in the file `ISO-Image-Tools_servicemenu.desktop`, which were added into a modified version of the service menu desktop file of Mount ISO image - here or elsewhere (store.kde.org/p/1201701/). The mount command is related to the script `iso_manager-mount-image.sh` (of KDE-Services) which is included here as such. This script file includes the following credits:

#################################################################
# For KDE-Services. 2012-2017. #
# By Geovani Barzaga Rodriguez #
# Improved by Victor Guardiola (vguardiola) Jan 5 2014 #
# -Fixed the problem of [dir|file]name with whitespaces. #
#################################################################

Therefore all credits go to the creators of these service menus and scripts.

The purpose of this is to have a simple way of mounting and unmounting images (without the many services that come with the installation of KDE-Services) that would look like the service menu Mount ISO image - here or elsewhere (store.kde.org/p/1201701/), which didn't seem to work as such.

It will mount the image in a newly created folder inside the same directory as the selected iso image. This folder will be deleted once the "unmount" option is applied to the selected iso image.

fuser, fusermount, fuseiso and kdialog must be installed.

---

INSTALLATION:

Copy the file "iso_mounter_unmounter.desktop" to `~/.local/share/kservices5/ServiceMenus/`

Copy the file "iso_manager-mount-image.sh" to `~/bin` (if you prefer other location you should edit accordingly the `Exec=` line under Desktop Action mount from the file "iso_mounter_unmounter.desktop").

Tested in Plasma 5.8 and 5.12.
Last changelog:

Updated mime type 4 months ago

model/x.stl-binary was added to the Mimetype line in the desktop file.

BJIacTeJIuH

3 months ago

Does the menu work correctly with all types ?? Or only with standard ISO 9660 ? In General, Krusader has a menu to mount in the submenu actions but does not understand ext4 and in my opinion would not hurt to do error handling . : IMHO and that standard error of mounting not information :IMHO

Report

ugasesna

3 months ago

+ works like a charm on kde plasma 5.12.
Didn't work the first time because i forgot to make the script executable, but that's on me

Report

jolugaju

3 months ago

It doesn't work for me. My system is Manjaro KDE. I followed the instructions step by step. First I had the message about fuseiso missing and I installed it. After that I haven't had any other messages. BTW I can't find the packages fuser, fusermount and fuseiso in the system or the respository.

Report

jolugaju

3 months ago

Correction: I have the package fuseiso, but not the others because they don't exist in Manjaro's repositories.

Report

ugasesna

3 months ago

Did you make the iso_manager-mount-image.sh executable ? if not, try right click > properties > permission tab > tick the "is executable" checkbox

Report

jolugaju

4 months ago

Very useful and simple

Report

jolugaju

3 months ago

I said this because I thought it would work for me, but I'm afraid it doesn't.

Report

C

cipricus

4 months ago

I have noticed that in Ubuntu 18.04, in order for a Dolphin context service menu to work for iso files, the desktop file needs `model/x.stl-binary` for the `Mimetype` line. I will edit the desktop file and re-upload it.

Report

C

cipricus

5 months ago

Refresh Dolphin if needed (F5). In Plasma 5.12 - Kubuntu 18.04, Dolphin is still affected by a bug (https://bugs.kde.org/show_bug.cgi?id=387663) where it would not always refresh to show instantly the changes made by another program, and refresh is needed. - After mounting an iso with this script it happened that when selecting again the iso in order to unmount, the option was absent until refreshing with F5.

Report

oshunluvr

9 months ago

Nice and simple. The way I like my servicemenus. Thanks.

Report

oshunluvr

9 months ago

I figured out the issue. There is a missing "." from the desktop file. In the last line, change

~/bin/iso_manager-mount-image.sh

to

~/.bin/iso_manager-mount-image.sh

and it works. You should fix that and re-upload the files.

Report

C

cipricus

9 months ago

Glad it works. But no change is needed from my part: my installation instructions say `~/bin` in accordance with the command in `iso_mounter_unmounter.desktop` file that I have uploaded. If you prefer `~/.bin` (or any other path really) instead of `~/bin`, the `.desktop` file needs to be change accordingly.

Report

oshunluvr

9 months ago

Ah, I see that now. I've never seen a Linux install with an exposed bin directory in a user's home, nor would I want one, so I guess I read ".bin" because of my own experience. This illustrates one of the main benefits to Linux - we can all have it our own way. :)

Report

C

cipricus

9 months ago

I think the purpose of a ~/bin folder is that it operates somewhat like usr/local/bin, only is not root. If you put an executable there, it can be run from a desktop file just by name, without the full path. This is not he case with ~/.bin I think.

Report

C

cipricus

9 months ago

For example, if the script is in ~/bin, the Exec line for the action "mount" in this desktop file can be modified as `Exec=iso_manager-mount-image.sh %f` - as the path is not needed in such a case. (And the rest of the command is just to tell you if you lack fuseiso.)

Report

C

cipricus

9 months ago

I have edited the installation instructions, namely:

Copy the file "iso_manager-mount-image.sh" to `~/bin` (if you prefer other location you should edit accordingly the `Exec=` line under ` [Desktop Action mount]` from the file "iso_mounter_unmounter.desktop").

Report

oshunluvr

9 months ago

Doesn't seem to work here. KDEneon 16.04

Report

C

cipricus

9 months ago

I have tested in Mint 18.3 which is Plasma 5.8 and Ubuntu 16.04. Do you have fuser, fusermount, fuseiso and kdialog ? If yes, possibly other packages are needed that I'm not aware of. - What I could mention is that I have installed (`sudo make install` in the package folder) and then uninstalled (`sudo make uninstall`) KDE-Services.

Report

C

cipricus

9 months ago

Many details on how I came to this: https://askubuntu.com/a/1005285/47206

Report

C

cipricus

9 months ago

Have you tested KDE-Services? It can be downloaded from downloaded as tar.bz2 archive from https://store.kde.org/p/998464/, unpacked and, by opening a terminal in the resulting folder, it can be installed by running the command `sudo make install`. But it adds a lot of menu entries.

Report

oshunluvr

9 months ago

fuser, fusermount, fuseiso all installed. It doesn't give any output, just doesn't do anything. I don't see how it's to work without a mount point. I'm not going to install a giant list of servicemenus. I would rather keep only what I will use.

Report

C

cipricus

9 months ago

The mount command in the `.desktop` file is exactly the one from KDE-Services except for the path to the `iso_manager-mount-image.sh` script, which I have place in `~bin`. And that script is exactly the same. You could backup your `usr/share/kservices5/ServiceMenus`, install KDE-Services, then remove all desktop files that it installs there excepting `ISO-Image-Tools_servicemenu.desktop`. You could look up the `.sh` script for the way it sets the mounting point. The mounted iso folder appears in the same directory as the iso.

Report

C

cipricus

9 months ago

I have tested by simplifying the mount command: it works with just `whatever/path/to/iso_manager-mount-image.sh %f`

Report

Updated mime type 4 months ago

model/x.stl-binary was added to the Mimetype line in the desktop file.

product-maker ugasesna Jul 31 2018

+ works like a charm on kde plasma 5.12. Didn't work the first time because i forgot to make the script executable, but that's on me

product-maker jolugaju Jul 11 2018

Very useful and simple

product-maker oshunluvr Feb 13 2018

Nice and simple. The way I like my servicemenus. Thanks.
File (click to download) Version Description Packagetype Architecture Downloads Date Filesize DL OCS-Install
Pling
Details
license
version
updated Jun 25 2018
added Feb 13 2018
downloads today
0
page views today 12
System Tags addon