Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1582758 - Window isn't shown when the app is launched
Summary: Window isn't shown when the app is launched
Keywords:
Status: CLOSED DUPLICATE of bug 1487701
Alias: None
Product: Fedora
Classification: Fedora
Component: nextcloud-client
Version: 28
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Germano Massullo
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-26 18:48 UTC by qoheniac
Modified: 2018-11-15 21:10 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1487701
Environment:
Last Closed: 2018-11-15 21:10:09 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description qoheniac 2018-05-26 18:48:54 UTC
+++ This bug was initially created as a clone of Bug #1487701 +++

This issue has also been reported against the ownCloud client - see bug 1487700.


Description of problem:

If you click on the application launcher, the client's settings window isn't shown, even if the app is already running. This is the incorrect behaviour according to the upstream developers [1]. It is also inconsistent with how the ownCloud client behaves on other platforms (I've tested Ubuntu and Arch) as well as the upstream development version [2].


Version-Release number of selected component (if applicable):

nextcloud-client-2.3.2-1.fc26.x86_64


How reproducible:

Every time.


Steps to Reproduce:

1. Find the Nextcloud desktop client launcher, click on it.


Actual results:

Nothing happens.


Expected results:

The application window is shown.


[1] https://github.com/owncloud/client/issues/5986
[2] https://software.opensuse.org/download/package?project=isv:ownCloud:community:testing&package=owncloud-client

--- Additional comment from Germano Massullo on 2017-09-01 14:12 EDT ---



--- Additional comment from Allan Day on 2017-09-04 06:14:37 EDT ---

From Fedora 27, this issue will mean that it won't be possible to access the Nextcloud client window, since status icons won't be displayed by default.

--- Additional comment from David Auer on 2017-11-29 13:08:17 EST ---

This is a serious issue that needs to be fixed in my opinion. You cannot access Nextcloud's status and settings without some heavy workaround: 
Installing Top Icons Plus (Gnome Addon) is not enough as the icon is for some reason missing after booting. I have to kill the running nextcloud process and rerun it to see the status icon which lets me access the status and settings window.

A startup delay might help to get the icon in Top Icons Plus but this is still a workaround for the workaround: https://help.nextcloud.com/t/no-nextcloud-icon-in-panel-on-mint/10548

--- Additional comment from Germano Massullo on 2017-11-29 13:33:06 EST ---

Owncloud version of the bugreport
https://bugzilla.redhat.com/show_bug.cgi?id=1487700

--- Additional comment from Germano Massullo on 2017-11-29 13:48:49 EST ---

I am asking Workstation SIG for help, because I cannot figure out where is the bug

--- Additional comment from Germano Massullo on 2017-11-29 17:29:15 EST ---

Are you using Wayland or Xorg?

--- Additional comment from David Auer on 2017-11-30 09:54:30 EST ---

I can reproduce this bug using:
Fedora 26 Wayland
Fedora 26 Xorg
Fedora 27 Xorg

(I can't easily check Fedora 27 with Wayland due to Nvidia drivers. I'd assume it's the same there.)

The special problem using Fedora 27 is, that the status icon isn't shown unless you install some gnome addon to display icons and kill and restart the Nextcloud process. So without knowing and using this workaround you can't control nextcloud in any way.


What i've tried so far:

- Searched for log files. Didn't find much: The --logfile and --logwindow options only show log items related to sychronization but don't notice if another instance is launched. If another instance is already running the new nextcloud command just returns after a moment without showing or writing any log.

- Had a look in "journalctl --follow": There is some nextcloud related stuff but mostly from nautilus and nothing special if a second instance is launched.

- Played around with strace: It seems to me that the main instance gets notified when a new nextcloud instance is started as it "stat"s the config file and accesses some socket named "qtsingleapp-Nextcl-84" which seems interesting to me:

stat("/home/da/.local/share/data/Nextcloud/nextcloud.cfg", 
{st_mode=S_IFREG|0664, st_size=592, ...}) = 0

accept4(19, {sa_family=AF_UNIX}, [110->2], SOCK_CLOEXEC) = 32
getsockname(32, {sa_family=AF_UNIX, sun_path="/tmp/qtsingleapp-Nextcl-84"}, [28->35]) = 0
getpeername(32, {sa_family=AF_UNIX}, [35->2]) = 0
getsockopt(32, SOL_SOCKET, SO_TYPE, [1], [4]) = 0
fcntl(32, F_GETFL)                      = 0x2 (flags O_RDWR)
fcntl(32, F_SETFL, O_RDWR|O_NONBLOCK)   = 0
ppoll([{fd=32, events=POLLIN}], 1, {tv_sec=30, tv_nsec=0}, NULL, 8
) = 1 ([{fd=32, revents=POLLIN}], left {tv_sec=29, tv_nsec=996677372})


Here is the full strace output of another run (FDs may have changed):
main instance: https://paste.fedoraproject.org/paste/WyLqTwLhVJgtmEHBrhrgrg
second instance: https://paste.fedoraproject.org/paste/ykiG6Jc3PKcs9vi7u9dRqg
another second instance: https://paste.fedoraproject.org/paste/CUW-Eyfnv6jDA1tjZ~rs-Q

Further ideas on how to proceed from here:
- Try other packages and/or compile from source to see if the bug is in there. 
- Try on a fresh install (Worth the effort?)
- Have a look at the source code.
- Maybe find someone with experience in debugging such issues.


I'm new to bugzilla and I hope I'm doing this right. Please tell me if I'm doing anything wrong or if you think I should read some guide first ;)

--- Additional comment from Germano Massullo on 2017-11-30 09:59:52 EST ---



--- Additional comment from Fedora End Of Life on 2018-05-03 04:57:11 EDT ---

This message is a reminder that Fedora 26 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 26. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '26'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 26 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 1 Germano Massullo 2018-11-15 21:10:09 UTC

*** This bug has been marked as a duplicate of bug 1487701 ***


Note You need to log in before you can comment on or make changes to this bug.