mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
set_dir
This commit is contained in:
parent
fd319b71a8
commit
0a4eb7d59a
2 changed files with 7 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
|||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Set working dir
|
||||
Name=Set VMs dir
|
||||
Exec=set_dir.sh
|
||||
Icon=/home/zen/.config/quickemu/vms_icons/cereus.svg
|
||||
Icon=/home/zen/.config/distrohopper/vms_icons/cereus.svg
|
||||
Categories=System;Virtualization;Settings;
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
#!/bin/bash
|
||||
QUICKEMU_VMS_DIR="$(yad --file --directory)"
|
||||
source distrohopper.conf
|
||||
NEWDIR="$(yad --file --directory --title="Where to save VMs?")"
|
||||
QUICKEMU_VMS_DIR="$NEWDIR"
|
||||
export QUICKEMU_VMS_DIR
|
||||
echo "New dir is: $QUICKEMU_VMS_DIR"
|
||||
sed -f config 's/QUICKEMU_VMS_DIR=""/QUICKEMU_VMS_DIR="$QUICKEMU_VMS_DIR"/g'
|
||||
#cat distrohopper.conf | grep 'QUICKEMU_VMS_DIR='
|
||||
#sed -f distrohopper.conf --posix -E 's/QUICKEMU_VMS_DIR="$HOME/.local/share/quickemu"/QUICKEMU_VMS_DIR="$QUICKEMU_VMS_DIR"/g'
|
||||
|
|
Loading…
Reference in a new issue