You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
letcriticalMessagePart1=_("You appear to be missing some of the programs required for this applet to have all its features.");
1284
-
letcriticalMessage=_is_apturl_present ? criticalMessagePart1 : criticalMessagePart1+"\n\n"+_("Please execute, in the just opened terminal, the commands:")+"\n "+_apt_update+" \n "+_apt_install+"\n\n";
1312
+
letcriticalMessage=_is_xdg_open_present ? criticalMessagePart1 : criticalMessagePart1+"\n\n"+_("Please execute, in the just opened terminal, the commands:")+"\n "+_apt_update+" \n "+_apt_install+"\n\n";
1285
1313
this.notification=criticalNotify(_("Some dependencies are not installed!"),criticalMessage,icon);
1286
1314
1287
-
if(!_is_apturl_present){
1288
-
if(terminal!=""){
1315
+
if(!_is_xdg_open_present){
1316
+
if(terminal.length>0){
1317
+
Util.spawnCommandLineAsync(terminal);
1289
1318
// TRANSLATORS: The next messages should not be translated.
1290
-
if(_isDebian===true){
1291
-
Util.spawnCommandLineAsync(terminal+" -e '/bin/sh -c \"echo Spices Update message: Some packages needed!; echo To complete the installation, please become root with su then execute the command: ; echo "+_apt_update+_and+_apt_install+"; sleep 1; exec bash\"'",null,null);
1292
-
}else{
1293
-
Util.spawnCommandLineAsync(terminal+" -e '/bin/sh -c \"echo Spices Update message: Some packages needed!; echo To complete the installation, please enter and execute the command: ; echo "+_apt_update+_and+_apt_install+"; sleep 1; exec bash\"'",null,null);
1294
-
}
1319
+
//~ if (_isDebian === true) {
1320
+
//~ Util.spawnCommandLineAsync(terminal + " " + term_sep + " " + " '/bin/bash -c \"echo Spices Update message: Some packages needed!; echo To complete the installation, please become root with su then execute the command: ; echo "+ _apt_update + _and + _apt_install + "; sleep 1; exec bash\"'", null, null);
1321
+
//~} else {
1322
+
//~ Util.spawnCommandLineAsync(terminal + " " + term_sep + " " + `'/bin/bash -c \"echo Spices Update message: Some packages needed!; echo To complete the installation, please enter and execute the command: ; echo ${_apt_update} ${_and} ${_apt_install}; sleep 1; exec bash\"'`, null, null);
0 commit comments