Author Topic: steamapps-linker (Looking for testers)  (Read 2698 times)

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: steamapps-linker (Looking for testers)
« Reply #15 on: November 06, 2011, 04:14:29 PM »
the following should work  ;)

Quote
#Find out what is inside media folder
#====================================
MSG=$"Please select what media your Windows install is on"
WSAM=`fdisk -l | egrep "NTFS|FAT32" | cut -d" " -f 1`
WSAM=$($YAD2 --title=$"TITLE" --text="$MSG" --entry $WSAM) --button="gtk-ok:0" --button="None:1" ret=$?

Won't report any media for some reason, even just fdisk -l doesn't report anything. If I can simply make it access the disk it than can be seen, for example clicking on my windows partition in Dolphin will allow it to be seen by list or manual file viewer.

 ???

please try parted:

parted -l

Offline glamdring

  • Hero Member
  • *****
  • Posts: 552
Re: steamapps-linker (Looking for testers)
« Reply #16 on: November 06, 2011, 04:34:26 PM »
bash: parted: command not found

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: steamapps-linker (Looking for testers)
« Reply #17 on: November 06, 2011, 04:40:30 PM »
bash: parted: command not found

well, please install it, available in repos.  ;)

Offline glamdring

  • Hero Member
  • *****
  • Posts: 552
Re: steamapps-linker (Looking for testers)
« Reply #18 on: November 06, 2011, 04:44:55 PM »
Okay, my bad those commands required root.  ::)

Offline glamdring

  • Hero Member
  • *****
  • Posts: 552
Re: steamapps-linker (Looking for testers)
« Reply #19 on: November 06, 2011, 04:48:00 PM »
You earlier solution now works! Although it comes in as sd1 and sd2, I need the name that will be in /media like /media/disk

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: steamapps-linker (Looking for testers)
« Reply #20 on: November 06, 2011, 05:02:30 PM »
You earlier solution now works! Although it comes in as sd1 and sd2, I need the name that will be in /media like /media/disk

/media is a directory usually reserved to mount removable media ... and there you need to create a subdirectory before to mount any partitions, and later remove that subdirectory.

Once you have selected the partition, mount it to an already existing directory, /mnt exist for this reason.
Then change your script to work using /mnt instead of /media/LABEL/...

i.e change to:
Quote
#Was manual selection used?
#==========================
if [ "$MFS" = "no" ]; then

   #32 or 64-bit?
   #=============
   if file /media/$WSAM/"Program Files/Steam"; then
   #WSAPP=$"/media/$WSAM/Program Files/Steam"
   WSAPP="/mnt/Program Files/Steam"
   else
   #WSAPP=$"/media/$WSAM/Program Files (x86)/Steam"
   WSAPP="/mnt/Program Files (x86)/Steam"
   fi
fi

... later do not forget to umount the partition.


Offline glamdring

  • Hero Member
  • *****
  • Posts: 552
Re: steamapps-linker (Looking for testers)
« Reply #21 on: November 06, 2011, 05:11:42 PM »
Well I use the /media because PCLinuxOS seems to default to that, if I use something I temp mnt the symbolic link won't work right? After script is done the user ends up with a symbolic link of the steamapps folder of the Steam install on Linux to the steamapps in Windows. When I boot my computer I have to click on my Windows partition in order for the link to work so it mounts.

Only alternative I see is to permanently mount it, is this bad?

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: steamapps-linker (Looking for testers)
« Reply #22 on: November 06, 2011, 05:23:12 PM »
Well I use the /media because PCLinuxOS seems to default to that, if I use something I temp mnt the symbolic link won't work right?
Correct. it will work only when mounted.
You should consider that there are users (like me) that when have dual boot systems may have a permanently mounted windows partition.


Quote
After script is done the user ends up with a symbolic link of the steamapps folder of the Steam install on Linux to the steamapps in Windows. When I boot my computer I have to click on my Windows partition in order for the link to work so it mounts.

Only alternative I see is to permanently mount it, is this bad?

You can state in "requirements" that an already mounted /window partitions is needed, in this case you only need to search where the partition is currently mounted.
It's not bad, it's a different plausible setup.

Or, you can manage to mount the partition from your script, therefore the mountpoint choice is up to you, so it will be the requirement to mount/umount the partition before/after each use.


Offline glamdring

  • Hero Member
  • *****
  • Posts: 552
Re: steamapps-linker (Looking for testers)
« Reply #23 on: November 06, 2011, 06:15:16 PM »
Okay, I was just assuming because it wasn't mounted automatically it wasn't good to have it permanently mounted. Is there really any advantage to having setup the way it is by default? I guess I can give the warning in the beginning of the scrip that this will mount the media and an option to unmount it again in case the use doesn't know how.