You are here

VLC portable saves a drive letter in an .ini file, which makes it not portable

7 posts / 0 new
Last post
bhagerty
Offline
Last seen: 12 years 5 months ago
Joined: 2011-11-11 09:46
VLC portable saves a drive letter in an .ini file, which makes it not portable

I installed VLC Portable 1.1.11 in a directory on my F: Drive. It worked fine.

I copied the installation folder to mo D: drive. From that location, I could not run VLC Portable. When I clicked on the .exe file, it failed silently.

I discovered the problem: the file VLCPortableSettings.ini, in the location

F:\[install directory]\VLCPortable\Data

has a setting for LastDrive=

That setting was LastDrive=D, which was the letter I first installed it to, but not the letter of the new drive. When I changed LastDrive=D to LastDrive=F, VLC Portable started up fine.

This should be fixed. An installation is not truly "portable" if it bakes a drive letter into a configuration file.

John T. Haller
John T. Haller's picture
Online
Last seen: 12 min 14 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
By Design

That drive letter is by design. It's so that the VLCPortable.exe launcher can update the paths within VLC itself as you move PCs. ALL portable apps do this. The launcher updates the music database, skin settings, last used files and other things as the path changes. So, yes, it is perfectly portable as long as you run VLCPortable.exe. If you run vlc.exe, it'll break, of course. Unless there is something else you've discovered that isn't yet portablized.

Sometimes, the impossible can become possible, if you're awesome!

beckett71
Offline
Last seen: 12 years 4 months ago
Joined: 2011-11-30 13:03
VLC does not start if drive letter changes.

I can confirm VLC does not start if the drive letter assigned to portable disk changes.

If I change the lastdrive in the config.ini to the correct one manually, VLC starts.

This problem does not occur with other portableapps applications that I use.
============
Wishing you all a very good evening.

John T. Haller
John T. Haller's picture
Online
Last seen: 12 min 14 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Works Fine

VLC works just fine as you move from PC to PC with the drive letter changing and has been used this way by millions of folks. If you are having an issue, something else is afoot. How are you launching VLC? If you run VLC.exe directly or associate VLC.exe with files directly, it'll fail when the drive letter changes. You need to use VLCPortable.exe always.

Sometimes, the impossible can become possible, if you're awesome!

beckett71
Offline
Last seen: 12 years 4 months ago
Joined: 2011-11-30 13:03
Issue of changing disk letter.

I start VLC either from portable exe or from portableapps platform. If I go with the disk to another computer and a different drive letter is assigned, VLC refuses to start. If I change the letter in lastdrive in an ini file manually VLC starts without any problems. Also, if I start VLC.exe directly it starts without any problems.

codycbradio
codycbradio's picture
Offline
Last seen: 8 years 1 month ago
Joined: 2016-02-25 11:32
When I switch to another

When I switch to another computer and the drive letter changes, it doesn't update the media library list. So I have to re-add all my movies and videos to the media library.

John T. Haller
John T. Haller's picture
Online
Last seen: 12 min 14 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Fixed in 2.2.2 Rev 2

This is fixed in VLC Portable 2.2.2 Rev 2. The storage of paths was updated in VLC and our launcher had to be updated to handle it.

Sometimes, the impossible can become possible, if you're awesome!

Log in or register to post comments