comparison ui/mainwindow.cpp @ 1067:51b97ebc5b06

(issue54) Launch depending on visibility either as tray or full after installation
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 10 Sep 2014 15:56:24 +0200
parents db831a204a6b
children edbf5e5e88f4
comparison
equal deleted inserted replaced
1066:febd195c0301 1067:51b97ebc5b06
333 #else /* WIN32 */ 333 #else /* WIN32 */
334 /* On linux installDir is <prefix>/bin */ 334 /* On linux installDir is <prefix>/bin */
335 QStringList parameters; 335 QStringList parameters;
336 installDir.cdUp(); 336 installDir.cdUp();
337 parameters << "--prefix" << installDir.path(); 337 parameters << "--prefix" << installDir.path();
338 parameters << "--update";
339 if (isVisible()) {
340 parameters << "--show-after-update";
341 }
338 bool sudo_started = false; 342 bool sudo_started = false;
339 bool use_sudo = is_admin() && is_system_install(); 343 bool use_sudo = is_admin() && is_system_install();
340 if (use_sudo) { 344 if (use_sudo) {
341 QStringList sudoPrograms; 345 QStringList sudoPrograms;
342 sudoPrograms << "pkexec" << "kdesudo" << "sudo"; 346 sudoPrograms << "pkexec" << "kdesudo" << "sudo";

http://wald.intevation.org/projects/trustbridge/