This forum has been archived. All content is frozen. Please use KDE Discuss instead.

LibreOffice opens minimized

Tags: None
(comma "," separated)
glepore70
Registered Member
Posts
59
Karma
0

LibreOffice opens minimized

Mon Dec 08, 2014 7:34 pm
Using KDE 4.14.1 and LibreOffice 4.3.3.2. Every time I lanch an instance of LibreOffice, using pretty much any method, the program opens minimized. I've tried most of the options under Special Window Settings and Special Application Settings to no avail. I usually use Calc, but it also occurs using Writer. I don't see any LibreOffice settings for this, so I'm guessing it follows the window manager settings.

Any ideas?
User avatar
toad
Global Moderator
Posts
1258
Karma
7
OS

Re: LibreOffice opens minimized

Mon Dec 08, 2014 7:49 pm
Inadvertently created a window rule? If not, create one to have it start maximised.

Edit:
To do so, open systemsettings - window behaviour - window rules


Debian testing
User avatar
google01103
Manager
Posts
6668
Karma
25

Re: LibreOffice opens minimized

Mon Dec 08, 2014 7:58 pm
1 - does it open not minimized for a new user
2 - did it ever? if so what is different?
3 - as a workaround you could try using "kstart --maximize-vertically oocalc"
4 - did you try opening in Konosole using the full path /usr/bin/oocalc ??


note: I Googled and saw no relevant hits on "libreoffice opens minimized"


OpenSuse Leap 42.1 x64, Plasma 5.x

glepore70
Registered Member
Posts
59
Karma
0

Re: LibreOffice opens minimized

Wed Dec 10, 2014 12:56 pm
Answering both posts (thanks for the advice):

Window rules - I had multiple rules created for LibreOffice calc to attempt to solve this problem, deleting them didn't fix the problem, nor did creating new ones.

I can't easily create a new user since I get a crash when trying to launch User Management.

No real changes to the system, apart from regular upgrades. The problem has occured for months.

using "kstart --maximize-vertically libreoffice --calc" from the command line opens Calc maximized every time, albeit behind the Konsole or Yakuake. However, putting the same string in KMenuEdit to use in my Launcher fails to fix the problem, Calc still opens minimized.

/usr/bin/libreoffice --calc from Konsole also opens maximized behind the Konsole.

One oddity with testing various window rules and ways of launching Calc, Calc occasionally launched maximized and with focus, but repeating the exact same process would launch minimized.

Again, thanks for any help!
luebking
Karma
0

Re: LibreOffice opens minimized

Wed Dec 10, 2014 3:33 pm
Code: Select all
I can't easily create a new user since I get a crash when trying to launch User Management.

Reported a bug?

You can still add users:
Code: Select all
sudo useradd dummy
sudo usermod -aG `groups | sed 's/ /,/g'` dummy


("sudo userdel dummy" will remove the user)

OT:
Either OOo opens minimized or it minimizes after opening.
The maximization state has nothing to do w/ the minimization - any change is conincidental.
Try
Code: Select all
kstart --activate libreoffice --calc

instead.

As for the cause:
run OOo so that it starts minimized, unminimize it and in konsole run "xprop > ooo.props", when the cursor turns into a '+', click the OOo window.
Paste ooo.props somehwhere (if here: please use code tags!)
glepore70
Registered Member
Posts
59
Karma
0

Re: LibreOffice opens minimized

Wed Dec 10, 2014 3:44 pm
Adding a new user displays the same behavior.

kstart --activate libreoffice --calc opens Calc maximized behind the Konsole window. Putting the code into the KLauncher link opens minimized.

Here are the results of xprop, minus the icons:

Code: Select all
_NET_WM_ICON_GEOMETRY(CARDINAL) = 1552, 1035, 153, 45
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_MOVE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_SHADE, _NET_WM_ACTION_MAXIMIZE_VERT, _NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_FULLSCREEN, _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_CLOSE
_KDE_NET_WM_FRAME_STRUT(CARDINAL) = 4, 4, 27, 4
_NET_FRAME_EXTENTS(CARDINAL) = 4, 4, 27, 4
_NET_WM_DESKTOP(CARDINAL) = 0
WM_STATE(WM_STATE):
      window state: Normal
      icon window: 0x0
_KDE_NET_WM_ACTIVITIES(STRING) = "00000000-0000-0000-0000-000000000000"
_NET_WM_NAME(UTF8_STRING) = "Untitled 1 - LibreOffice Calc"
WM_LOCALE_NAME(STRING) = "en_US"
WM_ICON_NAME(STRING) = "Untitled 1 - LibreOffice Calc"
WM_NAME(STRING) = "Untitled 1 - LibreOffice Calc"
_NET_WM_STATE(ATOM) = _NET_WM_STATE_MAXIMIZED_VERT, _NET_WM_STATE_MAXIMIZED_HORZ
XdndAware(ATOM) = BITMAP

_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0xf, 0x1, 0x1, 0x0, 0x0
WM_CLIENT_LEADER(WINDOW): window id # 0x2400012
_NET_WM_PID(CARDINAL) = 12652
WM_CLIENT_MACHINE(STRING) = "lepore-desktop"
WM_NORMAL_HINTS(WM_SIZE_HINTS):
      program specified location: -1, 23
      window gravity: Static
WM_CLASS(STRING) = "libreoffice", "libreoffice-calc"
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW, _NET_WM_PING
WM_HINTS(WM_HINTS):
      Client accepts input or input focus: True
      bitmap id # to use for icon: 0x24a7058
      bitmap id # of mask for icon: 0x24a7059
      window id # of group leader: 0x24a703f
_NET_WM_USER_TIME(CARDINAL) = 0
_KDE_NET_WM_USER_CREATION_TIME(CARDINAL) = 2476864410
luebking
Karma
0

Re: LibreOffice opens minimized

Wed Dec 10, 2014 3:57 pm
_NET_WM_USER_TIME(CARDINAL) = 0

The window is behind konsole, because it says that it doesn't want to be activated (happens here as well)

Putting the code into the KLauncher link opens minimized.

This sounds really weird.
a) How exactly do you start OOo "normally"
b) does OOo start minimized when just called from konsole "libreoffice --calc"?
glepore70
Registered Member
Posts
59
Karma
0

Re: LibreOffice opens minimized

Wed Dec 10, 2014 4:03 pm
I normally open Calc via a Favorite in the Application Launcher (the big blue K in the lower left corner of the Task Manager). I also have a link under Office in the Application Launcher. Lastly, I occasionally use File->New->Spreadsheet from within an already launched instance of Calc. All methods open minimized, although very rarely it will open maximized. When it does open maximized, repeating the exact same action opens minimized.

When called from a Konsole or Yakuake it always (I think) opens maximized behind the Konsole.

Thanks for helping troubleshoot this problem.
luebking
Karma
0

Re: LibreOffice opens minimized

Wed Dec 10, 2014 4:12 pm
Let's ignore the File/New/Spreadsheet thing for a moment (no idea what OOo would do there)
Can you please paste ~/.local/share/applications/libreoffice-calc.desktop ?
glepore70
Registered Member
Posts
59
Karma
0

Re: LibreOffice opens minimized

Wed Dec 10, 2014 4:14 pm
Here you go:

Code: Select all
[Desktop Action NewDocument]
Exec=libreoffice --calc
Name=New Spreadsheet
OnlyShowIn=Unity;

[Desktop Entry]
Actions=NewDocument;
Categories=Office;Spreadsheet;X-Red-Hat-Base;X-MandrivaLinux-Office-Spreadsheets;
Comment=Perform calculations, analyze information and manage lists in spreadsheets by using Calc.
Exec=kstart --activate libreoffice --calc
GenericName=Spreadsheet
Icon=libreoffice-calc
InitialPreference=5
Keywords=Accounting;Stats;OpenDocument Spreadsheet;Chart;Microsoft Excel;Microsoft Works;OpenOffice Calc;ods;xls;xlsx;
MimeType=application/vnd.oasis.opendocument.spreadsheet;application/vnd.oasis.opendocument.spreadsheet-template;application/vnd.sun.xml.calc;application/vnd.sun.xml.calc.template;application/msexcel;application/vnd.ms-excel;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;application/vnd.ms-excel.sheet.macroenabled.12;application/vnd.openxmlformats-officedocument.spreadsheetml.template;application/vnd.ms-excel.template.macroenabled.12;application/vnd.ms-excel.sheet.binary.macroenabled.12;text/csv;application/x-dbf;text/spreadsheet;application/csv;application/excel;application/tab-separated-values;application/vnd.lotus-1-2-3;application/vnd.oasis.opendocument.chart;application/vnd.oasis.opendocument.chart-template;application/x-dbase;application/x-dos_ms_excel;application/x-excel;application/x-msexcel;application/x-ms-excel;application/x-quattropro;application/x-123;text/comma-separated-values;text/tab-separated-values;text/x-comma-separated-values;text/x-csv;application/vnd.oasis.opendocument.spreadsheet-flat-xml;
Name=LibreOffice Calc
NoDisplay=false
Path[$e]=
StartupNotify=true
StartupWMClass=libreoffice-calc
Terminal=0
TerminalOptions=
Type=Application
Version=1.0
X-KDE-Protocols=file,http,smb,ftp,webdav
X-KDE-SubstituteUID=false
X-KDE-Username=
luebking
Karma
0

Re: LibreOffice opens minimized

Wed Dec 10, 2014 9:26 pm
Unless the launcher picks the "unity-only" item (the thing you click should say "LibreOffice Calc", not "New Spreadsheet") this looks ok (eg. no "ksystraycmd")

Let's try to rule out the launcher itself:

First off, revert the "kstart --activate" thing in the menu entry (apparently it's not required)

Next, run
Code: Select all
kstart --service ~/.local/share/applications/libreoffice-calc.desktop


this starts the service (what the launcher does) rather than the binary.

If this starts minimized, sth. about the service starting or the service itself is problematic. Otherwise plasma-desktop, rep. the actual launcher is the culprit.
glepore70
Registered Member
Posts
59
Karma
0

Re: LibreOffice opens minimized

Wed Dec 10, 2014 9:42 pm
kstart --service ~/.local/share/applications/libreoffice-calc.desktop opens Calc maximized (still behind Konsole, but that appears to be the "correct" behavior.) NOTE: Putting this command in the Application Launcher (which you didn't suggest but seemed reasonable) made my Plasma Task Manager freak out and I had to reboot to restore order.

I created a "Link to Application" on the desktop and it also opened minimzed, but that's still in Plasma, so I'm guessing it will have the same problem as in the Application Launcher.

I also added Calc to the Panel on the Task Manager and it showed similar erratic behavior, sometimes opening maximized and sometimes minimized.
luebking
Karma
0

Re: LibreOffice opens minimized

Wed Dec 10, 2014 10:08 pm
glepore70 wrote:Putting this command in the Application Launcher (which you didn't suggest but seemed reasonable) made my Plasma Task Manager freak out and I had to reboot to restore order.


LOL - that will cause a recursion =)
Killing "plasma-desktop" (evtl. "kill -9 plasma-desktop") should have done, though.

sometimes opening maximized and sometimes minimized.

Just to make this clear: "maximized" is NOT the opposite of "minimized".
"Minimized" (actually "iconified") implies that the window is not shown on screen, but eg. in the taskbar only.
"Maximized" means that it occupies as much space as possible.

Especially, a window can very well be maximized (sized as big as possible) AND minimized (but not on screen ;-) at the same time.

If you desire it to be "maximized", but it's just not (yet still visible), that'd be an entirely different matter.
-> Is it really minimized or just not maximized?
glepore70
Registered Member
Posts
59
Karma
0

Re: LibreOffice opens minimized

Wed Dec 10, 2014 10:14 pm
Ah, let me be clear on my terms! Calc opens minimized on the task manager. I want it to open maximized, in front of everything else and with focus. Exactly the way every other program opens. It's been opening, as you say, both minimized and maximized at the same time.

So, front and center and with focus is the goal, thanks!
User avatar
amirkhan
Registered Member
Posts
10
Karma
0

Re: LibreOffice opens minimized

Mon Dec 15, 2014 11:42 am
https://www.libreoffice.org/bugzilla/show_bug.cgi?id=75471


What's KDE? Poles Marmer KDE


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]