Page 1 of 1

compile so skins2 is default

Posted: 06 Jun 2007 19:32
by brockb
Is there a way to compile VLC from source so that the first time the vlc.exe file is run it starts the program in skins mode? I want to try and make it so that the first time anybody runs the program it defaults to the skins interface and always open up in the skins interface after that also.

I just tried adding "--enable-skins2 \" to the config file before compiling but that didn't work.

-BB

Posted: 06 Jun 2007 20:00
by Jean-Baptiste Kempf
Ohoh..

Just change and force it in the preferences or in the preferences file. Don't recompile VLC for this except if you are mad. :D

Posted: 06 Jun 2007 20:36
by brockb
Ohoh..

Just change and force it in the preferences or in the preferences file. Don't recompile VLC for this except if you are mad. :D
Is there a way to change it so that when a user installs VLC that we don't have to force them or explain to them how to go through and manually change it in preferences? We want to make it so that when they install VLC it opens up "branded" with our logos and skin and so forth. I've got the logos part down... we have the skin created and I've gotten so far as to once the user installs it... if they double click on a media file or right click on a media file and open with the player that it opens in skins mode. But if they just double click on the .exe it isn't going to open up in skins mode until we instruct them how to go through and set skins as their default. Or right after they go through the installation script and at the end if it asks them if they want to run the player... right then it opens up in wx mode. I would like it to open up in skins mode there too.

I think I've gone through and added "--intf skins2" in the NSI config file at all of the instances where D3Player.exe is launched so that through file association, dragging and dropping, etc... the registry settings has it launch in skins mode. I just can't for the life of me figure out how to get it to launch in skins mode on initial launch of the player after install without forcing the user to go through and change it in preferences first.

Too bad VLC doesn't create the vlcrc config file first before the initial launch after installation. If it did I could probably just have it write out an updated vlcrc file before the first launch.

Any other ideas?

Posted: 06 Jun 2007 20:40
by Jean-Baptiste Kempf
ok.

I suggest that you make the shortcuts to vlc.exe -Iskins or the start menu and desktop. then it will be saved.


If you really want to recompile because of the logo, then change the score of skins2 to be higher than the wx one.

Posted: 06 Jun 2007 20:43
by brockb
ok.

I suggest that you make the shortcuts to vlc.exe -Iskins or the start menu and desktop. then it will be saved.


If you really want to recompile because of the logo, then change the score of skins2 to be higher than the wx one.
I've already compiled with different logos and such. How does one change the "score" of skins2 to be higher. I don't mind re-compiling.

Posted: 06 Jun 2007 21:22
by Jean-Baptiste Kempf
set_capability( "interface", 30 );
in skin_main.cpp change the 30 to 160

Posted: 06 Jun 2007 21:26
by brockb
set_capability( "interface", 30 );
in skin_main.cpp change the 30 to 160
awesome... I'll give that a try. Thanks.

Posted: 06 Jun 2007 23:47
by brockb
Perfect! Worked like a charm.

Thanks a million... that is exactly what I was looking for.

Posted: 07 Jun 2007 08:06
by Jean-Baptiste Kempf
If you got millions, My bank account is open.

Anyway, I just warn you that you must comply to the GPL for the modified binary.

Posted: 07 Jun 2007 15:41
by brockb
Anyway, I just warn you that you must comply to the GPL for the modified binary.
Always!

Thanks again!