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

Autostart owncloud client minimized

Tags: None
(comma "," separated)
User avatar
mogliii
Registered Member
Posts
73
Karma
0
OS

Autostart owncloud client minimized

Sun Sep 16, 2012 10:04 am
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?
User avatar
google01103
Manager
Posts
6668
Karma
25
try
Code: Select all
 kstart --iconify <app_name>


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
mogliii
Registered Member
Posts
73
Karma
0
OS
I tried to autostart
Code: Select all
kdestart --iconify owncloud
, but this did not change anything.

Then I created a script file "~/.startowncloud.sh" with
Code: Select all
#!/bin/sh
kdestart --iconify owncloud

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.
mgraesslin
KDE Developer
Posts
572
Karma
7
OS
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.
User avatar
mogliii
Registered Member
Posts
73
Karma
0
OS
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.
luebking
Karma
0
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.
User avatar
mogliii
Registered Member
Posts
73
Karma
0
OS
luebking wrote: (the server really spawns a window?)

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.
Image

I will try to file a bug at owncloud.org, but their bug platform is down atm.
luebking
Karma
0
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?
User avatar
mogliii
Registered Member
Posts
73
Karma
0
OS
luebking wrote: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?
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.
luebking
Karma
0
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?
User avatar
mogliii
Registered Member
Posts
73
Karma
0
OS
luebking wrote: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?


Success! Owncloud window remains minimized. May I just comment: That .desktop file looks voodoo to me. Thank you for the help.
luebking
Karma
0
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
dtrebacz
Registered Member
Posts
3
Karma
0
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?
luebking
Karma
0
The autostart folder is ~/.config/autostart with KDE5 (xdg standard)
dtrebacz
Registered Member
Posts
3
Karma
0
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)?


Bookmarks



Who is online

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