зеркало из https://github.com/mozilla/pjs.git
FIxing bug 188417 by adding message about installing calendar as root if Mozilla was installed as root.
This commit is contained in:
Родитель
11dc67a61a
Коммит
d783211a19
|
@ -8,8 +8,10 @@ addDirectory( "resources" );
|
|||
|
||||
addDirectory("", "components", getFolder( "Components" ), "" );
|
||||
|
||||
addDirectory( "", "", "icons", getFolder( "Chrome", "icons" ), "", true );
|
||||
addDirectory( "", "icons", getFolder( "Chrome", "icons" ), "", true );
|
||||
|
||||
err = addFile( "", "calendar_pref.js", getFolder( getFolder( "Program", "defaults" ), "pref" ), "" );
|
||||
alert( err );
|
||||
var err = getLastError();
|
||||
|
||||
if ( err == SUCCESS ) {
|
||||
|
@ -31,7 +33,7 @@ if ( err == SUCCESS ) {
|
|||
}
|
||||
else if( err == "999" )
|
||||
{
|
||||
alert("The Mozilla Calendar has been installed. \n You must restart your browser to continue.");
|
||||
alert("The Mozilla Calendar has been installed. \n Please restart your browser to continue.");
|
||||
}
|
||||
|
||||
else {
|
||||
|
@ -41,9 +43,11 @@ if ( err == SUCCESS ) {
|
|||
}
|
||||
}
|
||||
else {
|
||||
alert("Failed to create directory. \n"
|
||||
alert("Failed to create directory. \n"
|
||||
+"You probably don't have appropriate permissions \n"
|
||||
+"(write access to mozilla/chrome directory). \n"
|
||||
+"If you installed Mozilla as root then you need to install calendar as root as well.\n"
|
||||
+"Or, you can change ownership of your Mozilla directory to yourself and install calendar."
|
||||
+"_____________________________\nError code:" + err);
|
||||
cancelInstall(err);
|
||||
}
|
||||
|
|
|
@ -8,8 +8,10 @@ addDirectory( "resources" );
|
|||
|
||||
addDirectory("", "components", getFolder( "Components" ), "" );
|
||||
|
||||
addDirectory( "", "", "icons", getFolder( "Chrome", "icons" ), "", true );
|
||||
addDirectory( "", "icons", getFolder( "Chrome", "icons" ), "", true );
|
||||
|
||||
err = addFile( "", "calendar_pref.js", getFolder( getFolder( "Program", "defaults" ), "pref" ), "" );
|
||||
alert( err );
|
||||
var err = getLastError();
|
||||
|
||||
if ( err == SUCCESS ) {
|
||||
|
@ -31,7 +33,7 @@ if ( err == SUCCESS ) {
|
|||
}
|
||||
else if( err == "999" )
|
||||
{
|
||||
alert("The Mozilla Calendar has been installed. \n You must restart your browser to continue.");
|
||||
alert("The Mozilla Calendar has been installed. \n Please restart your browser to continue.");
|
||||
}
|
||||
|
||||
else {
|
||||
|
@ -41,9 +43,11 @@ if ( err == SUCCESS ) {
|
|||
}
|
||||
}
|
||||
else {
|
||||
alert("Failed to create directory. \n"
|
||||
alert("Failed to create directory. \n"
|
||||
+"You probably don't have appropriate permissions \n"
|
||||
+"(write access to mozilla/chrome directory). \n"
|
||||
+"If you installed Mozilla as root then you need to install calendar as root as well.\n"
|
||||
+"Or, you can change ownership of your Mozilla directory to yourself and install calendar."
|
||||
+"_____________________________\nError code:" + err);
|
||||
cancelInstall(err);
|
||||
}
|
||||
|
|
|
@ -8,8 +8,10 @@ addDirectory( "resources" );
|
|||
|
||||
addDirectory("", "components", getFolder( "Components" ), "" );
|
||||
|
||||
addDirectory( "", "", "icons", getFolder( "Chrome", "icons" ), "", true );
|
||||
addDirectory( "", "icons", getFolder( "Chrome", "icons" ), "", true );
|
||||
|
||||
err = addFile( "", "calendar_pref.js", getFolder( getFolder( "Program", "defaults" ), "pref" ), "" );
|
||||
alert( err );
|
||||
var err = getLastError();
|
||||
|
||||
if ( err == SUCCESS ) {
|
||||
|
@ -31,7 +33,7 @@ if ( err == SUCCESS ) {
|
|||
}
|
||||
else if( err == "999" )
|
||||
{
|
||||
alert("The Mozilla Calendar has been installed. \n You must restart your browser to continue.");
|
||||
alert("The Mozilla Calendar has been installed. \n Please restart your browser to continue.");
|
||||
}
|
||||
|
||||
else {
|
||||
|
@ -41,9 +43,11 @@ if ( err == SUCCESS ) {
|
|||
}
|
||||
}
|
||||
else {
|
||||
alert("Failed to create directory. \n"
|
||||
alert("Failed to create directory. \n"
|
||||
+"You probably don't have appropriate permissions \n"
|
||||
+"(write access to mozilla/chrome directory). \n"
|
||||
+"If you installed Mozilla as root then you need to install calendar as root as well.\n"
|
||||
+"Or, you can change ownership of your Mozilla directory to yourself and install calendar."
|
||||
+"_____________________________\nError code:" + err);
|
||||
cancelInstall(err);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче