summaryrefslogtreecommitdiff
path: root/desktop/unx
AgeCommit message (Collapse)AuthorFilesLines
2017-03-30remove type decorations on char literalsJochen Nitschke1-3/+3
they are only needed where type deduction fails. left them in defines for now. Change-Id: I7f002dd6bc7acc083c73b6c64076de6dd28d0b09 Reviewed-on: https://gerrit.libreoffice.org/35893 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-03-19Fix typos + some German translationsAndrea Gelmini1-1/+1
Change-Id: I1c5bb725ffdf72363279436ad9bbb88064228253 Reviewed-on: https://gerrit.libreoffice.org/35406 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
2017-03-08WaE: include needed headerDavid Tardon1-0/+1
"error: In the GNU C Library, "major" is defined by <sys/sysmacros.h>. For historical compatibility, it is currently defined by <sys/types.h> as well, but we plan to remove this soon. To use "major", include <sys/sysmacros.h> directly. If you did not intend to use a system-defined macro "major", you should undefine it after including <sys/types.h>." Change-Id: I7f5741d4c2eae277e316c5fc97aa73b9430fbdc1
2017-02-08coverity#1242486 Out-of-bounds accessCaolán McNamara1-1/+1
Change-Id: I24d73edd90a7fbfe63dd70a1784fb2276ceb079b
2017-02-03Typo: progess->progressJulien Nabet1-1/+1
Change-Id: Ic13529f4bc9ac49059a59067c50d5f2c0f569822 Reviewed-on: https://gerrit.libreoffice.org/33902 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
2017-01-21coverity#1399016 Logically dead codeCaolán McNamara1-2/+6
Change-Id: Ib3f0ca4d07dffb568287bcd6a283ab4e529519ff
2017-01-20const these upCaolán McNamara1-14/+14
Change-Id: Ide19ec6a04a591327effe6d3c4da5db62e58b4c9
2017-01-13refactor this to open the display just onceCaolán McNamara1-86/+96
and use the https://wiki.gnome.org/HowDoI/HiDpi HiDPI detection rules. all of this does nothing in practice, cause there is no hidpi splashscreen image Change-Id: I609faab0f207d71fd4a17bb54ef688bdd623eaea
2017-01-13tdf#90794 Fix the Linux HiDPI start screenAbhilash Singh2-5/+45
Change-Id: I2553cf69d6968865dc6011c73a0d2c0e7519b7a8 Reviewed-on: https://gerrit.libreoffice.org/32018 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-01-09New loplugin:externvar: desktopStephan Bergmann1-1/+1
Change-Id: I3942e7496c6014c0118a9e90a8fa8251bffe8443
2016-12-12loplugin:unreffunTor Lillqvist2-4/+6
Change-Id: If538d5d5347f58e18869cab2b687af26a39a89eb
2016-07-15Related tdf#37531: Make --cat headless/hidden like --convert-toStephan Bergmann1-0/+1
...which automatically takes care of the open problem from 08960441558743f222280637985690bb8b41b861 "Related tdf#37531: Handle conversion args sent over pipe" that --cat terminates the called soffice. Change-Id: Ief8cdf8c1335749dad1504966d635e0519fe92f7
2016-07-09Resolves: tdf#90526 don't show splashscreen for -pt -or -pCaolán McNamara1-1/+2
Change-Id: I64c6d82e3ff738fbc83b00d640765e8863ccd9b6
2016-07-09Resolves: tdf#71064 failed to open display with -h but not --helpCaolán McNamara1-1/+1
when there is no DISPLAY set Change-Id: Ic4f10d6f4781d01a05e51862b41311a2c1a3dc66
2016-05-30Move exithelper.h to includeTor Lillqvist1-1/+1
We will want to use EXITHELPER_CRASH_WITH_RESTART in vcl, too. Change-Id: If34244a361b157e0e9c7cca55fc34f0574f39984
2016-05-11xdg-app got renamed to FlatpakStephan Bergmann1-1/+1
Change-Id: Ib5ea4ad5b6033ee1634ea2f245742f862a40042d
2016-05-06coverity#1359235 Resource leakCaolán McNamara1-11/+9
Change-Id: I3f307211c70384b55b62314a7aa302ffcdfc7398
2016-05-02-Werror,-Wlogical-not-parenthesesStephan Bergmann1-1/+1
Change-Id: I0ed6445964523b17ca5635d4d26cd429ff60c294
2016-05-01tdf#99311 Detect SSDs in pageinNurhak ALTIN1-0/+29
Avoid doing the pagein work if we can detect a non-rotational disk. Change-Id: I1ce11050d7ed2a805568343cd385f2612d7c8939 Reviewed-on: https://gerrit.libreoffice.org/24560 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2016-04-07refactor pagein, as it still seems to cause rare crashesBjoern Michaelsen1-19/+11
Change-Id: I51e6cdf79c19c3709e00dc10175527ec6583a758 Reviewed-on: https://gerrit.libreoffice.org/23872 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
2016-04-04Add DBus-based IPC mechanism for xdg-appStephan Bergmann1-1/+1
first cut; triggered on LIBO_XDGAPP env var for now Change-Id: If4586aedb58499e36a5d87cc8d171400ce7e9499
2016-03-21No, I don't want to see that "bootstap" typo on every start of sofficeStephan Bergmann1-37/+0
Silly of 221144f9c995fe30adf577c02f756b3123fb2550 "tdf#91794 OSL_DEBUG_LEVEL > 1 removed (desktop)" to make that output conditional on just OSL_DEBUG_LEVEL>0. Can't use sal/log.hxx here, and demand for this debug output is probably rare to non-existant, so just remove it. Change-Id: Ie8c7846f785c7875375af215934c71ff28085458
2016-03-12tdf#91794 OSL_DEBUG_LEVEL > 1 removed (desktop)Rohan Kumar1-27/+6
[UPDATED PATCH]: I removed the trailing newline characters in the SAL_WARN macro as pointed by Jan Iverson Change-Id: If90b0d44777ec2ab1bd646f22f4c9cdf798cf8b4 Reviewed-on: https://gerrit.libreoffice.org/22315 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2016-03-02tdf#98210 do not require R_OK for pipe dirHank Leininger1-2/+7
Also better error handling if pipe dirs are really not usable. Change-Id: I1c865b9a9f1f08d2cffd07343494feca585ec75e Reviewed-on: https://gerrit.libreoffice.org/22727 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-02-23new loplugin: commaoperatorNoel Grandin1-3/+6
Change-Id: I03f24e61f696b7619855e3c7010aa0d874e5a4ff
2016-01-19-Werror=strict-aliasing (GCC 6)Stephan Bergmann1-1/+1
Change-Id: I080315852db2f6e852f63f3965a2b7bf91529168
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann5-18/+18
Change-Id: I8204a300c98b891a842ef2e40b65f0810dd7817a
2015-10-07tdf#94829: Splash screen sets invalid XSizeHintsJulien Nabet1-0/+4
Change-Id: I70b86624b4d34eb6cb8f2efee0305539f6689335 Reviewed-on: https://gerrit.libreoffice.org/19219 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-10-06Fix typosAndrea Gelmini1-1/+1
Change-Id: Ia6246bb6d37a0ec1ac53a4cb095bfd6fd15f873d Reviewed-on: https://gerrit.libreoffice.org/18945 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-10-05Add new line after error message during startupArnaud Versini1-3/+3
Change-Id: Ieaf81a3b9491141805722ea60c6a8ddfe94ecda3 Reviewed-on: https://gerrit.libreoffice.org/19120 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com>
2015-09-23CppCheck : reduce variables scopeMichaël Lefèvre1-2/+3
Change-Id: Ief402017b693a4337f330fb07bb7a6dc6e749f72 Reviewed-on: https://gerrit.libreoffice.org/18753 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-05-08read_percent returns ProgressStatus, not sal_BoolStephan Bergmann1-1/+1
Change-Id: I6e1c1f88b28db2728b2f29ea47c3e86ef8983697
2015-03-30Revert "Merge the --invisible and --headless options"Tor Lillqvist1-0/+1
Stephan told about the intended use case for --invisible, and it does sound like a plausible use case, so let's revert this. "ah, now that I see 4fe56f3b9af814430a28a1880799f450fb8146b9: one use case for invisible + !headless might be in workflows where external code keeps a LO instance running and lets it pop up document windows, but you don't want the initial start center thing I think that's historically where the --invisible thing is coming from, now that I vaguely remember again" This reverts commit 4fe56f3b9af814430a28a1880799f450fb8146b9. Change-Id: I17f535adee7e533abbee150b0ce5156ecf78c781
2015-03-30Merge the --invisible and --headless optionsTor Lillqvist1-1/+0
No need to have both. Change-Id: Ibd2f9f6d352ffb52bf43f4e1a4f69f60a60458ff
2015-03-26tdf#39440 cppcheck cleanliness, Fixing basic cpp errorsVarun1-1/+1
Initialized a non-initialized integer variable which is widely used in if else Change-Id: Ibd99c0baa4cd3d4d409310a9a70dc7b421f6a8b2 Reviewed-on: https://gerrit.libreoffice.org/14780 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-03-16CppCheck cleaning : remove unused struct memberMichaël Lefèvre1-17/+16
Change-Id: I07ebb82b71d6019a35b7cd2757464dab269d2098 Reviewed-on: https://gerrit.libreoffice.org/14855 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-02-23remove unnecessary parenthesis in return statementsNoel Grandin1-11/+11
found with $ git grep -lP 'return\s*\(\s*\w+\s*\)\s*;' Change-Id: Ic51606877a9edcadeb647c5bf17bc928b69ab60e
2015-01-01desktop: adapt pArgDescr to CommandLineArgs::ParseCommandLine_Impl()Miklos Vajna1-0/+1
Commit fe5527f1c6dc259af464a0593e86a2da2983b7ed (desktop, sysui: let --convert-to imply --headless, 2014-12-22) changed CommandLineArgs::ParseCommandLine_Impl(), so that --convert-to implies --headless. However, that worked only when ./soffice.bin was launched; when the ./soffice wrapper started oosplash, then a logo was still shown, as oosplash has its own list of switches that disable the splash screen. Fix the inconsistency by adding "convert-to" to oosplash's list as well. Change-Id: I47e30db3b658f179f10e8a447b5d7cea083fcc60
2014-12-02Use OSL_LIT/BIGENDIANStephan Bergmann1-10/+2
...one of which is guaranteed to be defined Change-Id: Icb02826f8da03ad0d605ec11f07bf60f30d1a3d0
2014-11-28Clean upStephan Bergmann3-136/+30
Change-Id: Idc8aa334dd784b7d55f092b0a0e353bb2f9b38d1
2014-11-28Fold URE: Linux ure/bin/* -> program/Stephan Bergmann1-1/+1
Change-Id: Id6cab518329829c22600f2a68b6b59abd04a564c
2014-11-21make glxtest available in salmainMarkus Mohrhard1-282/+0
Change-Id: Ic8bc3f2d5d96506590d35138089ead2eac984314
2014-11-20WaE: work around loplugin:unreffun and loplugin:externandnotdefinedTor Lillqvist1-0/+1
Change-Id: I5192ad1f068746da257f3e1d9340325956b1e69d
2014-11-20include the unx part for getting OpenGL driver & device informationMarkus Mohrhard1-0/+281
desktop/unx/source/glxtest.cxx is taken directly from the Mozilla project. THe whole concept is taken from Mozilla and is based on starting an early process that creates an OpenGL context. This prevents crashing drivers to crash Libreoffice. We read the information from the pipe as soon as we create the first vcl Window. In that place we then decide if the device/driver combination is blacklisted. Change-Id: I2624d4ce06d503281a4459cf3174f57cf1f7b733
2014-10-28coverity#982159 silence Unchecked return value from libraryCaolán McNamara1-1/+1
Change-Id: I92ff023ea2a8503d7c4799921c644aa011685ae2
2014-10-10coverity#1242395 Don't call randomCaolán McNamara1-30/+0
Change-Id: Idd4adac71222e03d85446c86f1c086ce32528bd6 mmeeks: just chop that else {} block out in splashx and good riddance
2014-10-09desktop: -Werror=unused-macrosMichael Stahl1-6/+0
The documented feature test macro is _BSD_SOURCE, and anyway, feature test macros must be defined before the first libc header is included, so this one is evidently useless. Change-Id: Ib4b2db0c6151c2f3df322992b189257f5dd0ea22
2014-06-04desktop: fix includesThomas Arnhold1-1/+1
Change-Id: Ia51cd6fcdb84c049907b0aeda20774558198b575
2014-05-20C string usage improvmentArnaud Versini1-1/+1
Change-Id: I5c59f0d2d1b911ffa1ee251e0f1355d137616493 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-04-13Clean up function declarations and some unused functionsStephan Bergmann3-5/+31
Change-Id: Ie35d71a03d2f89cd72836db21fac8746a9e85b09