Registered Member
|
I have added the owncloud sync client to KDE's autostart.
Command: owncloud Run On: Startup It gets started every time, and I get a notification bubble lower right "2 syncs started", but addidionally the owncloud window shows up maximized. How can I suppress this window? |
Manager
|
|
Registered Member
|
I tried to autostart
Then I created a script file "~/.startowncloud.sh" with
and tried to add it in the autostart dialog (on Startup), but it does not get saved. After I press OK to close the dialog and re-open, the entry I created is gone. |
KDE Developer
|
A better solution might be to create a window specific rule and select for "Minimized" the value "Apply Initially" with "Yes".
I'm not sure whether kdestart works with non-KDE applications. |
Registered Member
|
Will try the window rule.
Another strange thing: When starting owncloud after startup manually (not using autostart), the owncloud window does not show. Edit: Window rule not working. Owncloud main window shows up anyway. |
|
The window will likely unminimize itself explicitly (after the start) - there's not much you could do about that (you can force it to be minimized but cannot unminimize it ever and it's probably even a browser?)
-> file a bug against owncloud (the server really spawns a window?) to be less aggressive in exposing itself. |
Registered Member
|
This thread is about the desktop sync client. And that's the window that pops up when owncloud is started via autostart, but not if started manually after the KDE desktop loaded. The "owncloud" executable doesn't have any command line option to explicitly suppress the window. I will try to file a bug at owncloud.org, but their bug platform is down atm. |
|
is there an owncloud entry in ~/.kde/share/config/session/ or is it mentioned in kwin's session entry (~/.kde/share/config/session/kwin_*) that could unminimize it?
|
Registered Member
|
There is no owncloud file, and there is no mention of owncloud in any of the two kwin files. I just tried with a different account on the same computer and the owncloud window opens as well. So its unlikely my configuration. Could it be a kwin bug? Or owncloud? But then again, the window only opens when using autostart. |
|
Possibly of neither.
Can you try adding a owncloud.desktop service into ~/.kde/share/autostart [Desktop Entry] Exec=owncloud X-DBUS-StartupType=wait Name=OwnCloud Name[x-test]=xxOwnCloudxx Type=Service X-KDE-StartupNotify=false OnlyShowIn=KDE; X-KDE-autostart-phase=2 and see whether that causes the unminimized window as well? |
Registered Member
|
Success! Owncloud window remains minimized. May I just comment: That .desktop file looks voodoo to me. Thank you for the help. |
|
it's no voodoo.
the problem is that ownclowd started too early in the session process (esp. before the WM) [Desktop Entry] ^^ group/entry header Exec=owncloud ^^ what to call X-DBUS-StartupType=wait ^^ do not start unless dbus is there Name=OwnCloud ^^ random pretty name Name[x-test]=xxOwnCloudxx ^^ random pretty name for some i18n section - i frankly don't knwo what it does myself, so i just add it Type=Service ^^ what it is X-KDE-StartupNotify=false ^^ no nasty bouncing cursor junk OnlyShowIn=KDE; ^^ not for the gnomers! ;-P X-KDE-autostart-phase=2 ^^ the important part - start in last login phase when the actual desktop stuff is there |
Registered Member
|
Unfortunately this doesn't seem to work. Perhaps due to changes in KDE? I created the file in the .kde/share/autostart/ folder but I still get a visible window for owncloud client on startup. Am I missing something or has KDE changed something?
|
|
The autostart folder is ~/.config/autostart with KDE5 (xdg standard)
|
Registered Member
|
Thanks for pointing me to the current folder (~/.config/autostart). There was a ownCloud.desktop configuration there (I have autostart enabled in the the client). Below is the configuration that was there:
[Desktop Entry] Name=ownCloud GenericName=File Synchronizer Exec=/usr/bin/owncloud Terminal=false Icon=owncloud Categories=Network Type=Application StartupNotify=false X-GNOME-Autostart-enabled=true I added these 3 lines to the end of the owncloud desktop configuration (assuming order doesn't matter): X-DBUS-StartupType=wait OnlyShowIn=KDE; X-KDE-autostart-phase=2 The owncloud client still starts full window (kubuntu 15.10 plasma desktop)? |
Registered users: Bing [Bot], Evergrowing, Google [Bot]