I'm afraid I will have to bug you again, I lost count what all I tried to do over last few days, nothing works, gnome-boxes always defaults installing images into ~/.local/share/gnome-boxes/images. My system:Head_on_a_Stick wrote: Sun Dec 22, 2019 10:00 am Change the "Exec=" line to this:Then move your disk images to the new location and log out & back in again.Code: Select all
Exec=sh -c "XDG_DATA_HOME='data' gnome-boxes"
Code: Select all
/home/mx/ <- user
~/.local/share/gnome-boxes/images <- where images gets installed
/media/data/ <- data partition on the same disk as MX
/media/data/gnome-boxes/images/ <- desired location for installed images
Code: Select all
Exec=sh -c "XDG_DATA_HOME='/media/data' gnome-boxes"
I'm running boxes with this command in terminal:
XDG_DATA_HOME='/media/data' gnome-boxes
or
gnome-boxes
or I run it by clicking desktop file, I even entered: Exec=sh -c "XDG_DATA_HOME='/media/data' gnome-boxes" into deskop file that is located on the desktop, so it matches with the one located in: /home/mx/.local/share/applications/
I edited fstab and tried (one at a time) these two lines, although I'm not sure I'm doing it correctly?
Code: Select all
~/.local/share/gnome-boxes/images /media/data/gnome-boxes/images ext4 defaults,nosuid,nodev,relatime 0 0
/home/mx/.local/share/gnome-boxes/images/ /media/data/gnome-boxes/images ext4 defaults,nosuid,nodev,relatime 0 0
Code: Select all
UUID=eea17d6d-7afd-45ae-88b9-e470916c46d7 /media/data ext4 defaults,nosuid,nodev,relatime 0 0
Code: Select all
Failed to mount "images".
mount: /media/data/gnome-boxes/images: operation permitted for root only
Being desperate I tried
Code: Select all
sudo chown $USER:$USER /media/data/gnome-boxes/images
I can't recall what else I tried, but nothing works. Gnome-boxes always install image into ~/.local/share/gnome-boxes/images. My home is installed inside root (meaning no separate home partition) if this changes anything and my free space is limited, so i would like to be able to install all images into data folder on the same disk. Too bad, gnome-boxes don't have menu settings where you can just define default installation path.
Anyway, do you (or anyone else) happen to have any other idea, what I could also try?