nextcloud / desktop

💻 Desktop sync client for Nextcloud
https://nextcloud.com/install/#install-clients
GNU General Public License v2.0
3.06k stars 804 forks source link

[Bug]: `--background` not working #5916

Open LDprg opened 1 year ago

LDprg commented 1 year ago

⚠️ Before submitting, please verify the following: ⚠️

Bug description

I am autostarting nextcloud on linux with --background, but it still opens the window and does not minimize to tray.

Steps to reproduce

  1. Start nextcloud client with --background

Expected behavior

Well, that the app does not show up on start or when using --background.

Which files are affected by this bug

?

Operating system

Linux

Which version of the operating system you are running.

Arch with Gnome as DE

Package

Distro package manager

Nextcloud Server version

-

Nextcloud Desktop Client version

2:3.9.0-2

Is this bug present after an update or on a fresh install?

Fresh desktop client install

Are you using the Nextcloud Server Encryption module?

Encryption is Enabled

Are you using an external user-backend?

Nextcloud Server logs

?

Additional info

background_bug.zip

LDprg commented 1 year ago

After a couple of restarts (3-5) it worked again, but I let the issue open just in case.

LDprg commented 1 year ago

Strangely the problem accrued since today again.

siSSSou commented 1 year ago

The option "--background" sometimes works, but most of the time main window is shown at startup. It's strange this bug is still alive...

LDprg commented 1 year ago

The option "--background" sometimes works, but most of the time main window is shown at startup. It's strange this bug is still alive...

Yeah the issue seems to happen only sometimes and also depending on the system. On my other Laptop it works as expected.

WhoAmI0501 commented 3 months ago

I am also facing this behavior on my Ubuntu machines with Gnome... quite annoying.

joshtrichards commented 3 months ago

Related: #5382

WhoAmI0501 commented 3 months ago

Related: #5382

In my case, i want to add the information, that the window stays open until I explicitly close it via the task bar. Its not just popping up for a short moment.

GUSC68 commented 2 months ago

Same here since updating the appimage to 3.14.0 on Debian/XFCE. Start in the middle of the screen after the 1st login and disappear only after a clic on the icon in the notification area. Worked like a charm before the update :/

Dravere commented 1 month ago

This is happening for me constantly now. The window always appears on startup. To reproduce I can restart the PC or exit the NextCloud client and start it with the --background parameter from a terminal and it will always show up with the main window. It's really annoying.

System is XUbuntu 24.04.1, NextCloud desktop client is at 3.14.1

Jerome-Herbinet commented 1 month ago

Same with Linux Mint XFCE 22 and 3.14.1 client.

marukuru commented 1 day ago

Same here: Xubuntu 24.04.1, Xfce 4.18, GTK 3.24.41, Client 3.14.3.

2024-11-21 21:27:56:835 [ info nextcloud.gui.application ./src/gui/application.cpp:727 ]:   ################## "Nextcloud" locale: "en_US" ui_lang: QVariant(Invalid) version: "3.14.3-20241107.180900.3cdc27b7e-1.0~noble1" os: "Ubuntu 24.04.1 LTS"
2024-11-21 21:27:56:835 [ info nextcloud.gui.application ./src/gui/application.cpp:732 ]:   Arguments: QList("/usr/bin/nextcloud", "--background", "--logdebug", "--logwindow")
2024-11-21 21:27:56:835 [ debug nextcloud.gui.application ./src/gui/application.cpp:1013 ]  [ OCC::Application::setupTranslations ]:    trying to load "en_US" in "client_en_US" from "/usr/share/nextcloud/i18n/"
2024-11-21 21:27:56:835 [ info nextcloud.gui.application ./src/gui/application.cpp:1020 ]:  Using "en_US" translation
2024-11-21 21:27:56:835 [ debug nextcloud.gui.application ./src/gui/application.cpp:1037 ]  [ OCC::Application::setupTranslations ]:    impossible to load QtKeychain translation catalog "qtkeychain_en_US"
2024-11-21 21:27:56:842 [ info nextcloud.gui.application ./src/gui/application.cpp:382 ]:   VFS suffix plugin is available
2024-11-21 21:27:56:842 [ info nextcloud.gui.socketapi ./src/gui/socketapi/socketapi.cpp:310 ]: server started, listening at  "/run/user/1000/Nextcloud/socket"
2024-11-21 21:27:56:842 [ info nextcloud.gui.folder.manager ./src/gui/folderman.cpp:67 ]:   setting remote poll timer interval to 30000 msec
2024-11-21 21:27:56:858 [ debug nextcloud.gui.ocsuserstatusconnector ./src/libsync/ocsuserstatusconnector.cpp:226 ] [ OCC::OcsUserStatusConnector::fetchUserStatus ]:   Try to fetch user status
2024-11-21 21:27:56:858 [ debug nextcloud.gui.ocsuserstatusconnector ./src/libsync/ocsuserstatusconnector.cpp:229 ] [ OCC::OcsUserStatusConnector::fetchUserStatus ]:   User status not supported
2024-11-21 21:27:56:885 [ info nextcloud.gui.account.manager ./src/gui/accountmanager.cpp:485 ]:    Account for QUrl("") using auth type "webflow"
2024-11-21 21:27:56:885 [ info nextcloud.sync.credentials.webflow ./src/gui/creds/webflowcredentials.cpp:117 ]: Get QNAM
2024-11-21 21:27:56:885 [ info nextcloud.gui.account.manager ./src/gui/accountmanager.cpp:544 ]:    Restored:  0  unknown certs.
2024-11-21 21:27:56:885 [ debug nextcloud.gui.activity ./src/gui/tray/usermodel.cpp:281 ]   [ OCC::User::setNotificationRefreshInterval ]:  Starting Notification refresh timer with  60  sec interval
2024-11-21 21:27:56:885 [ info nextcloud.gui.folder.manager ./src/gui/folderman.cpp:186 ]:  Setup folders from settings file
2024-11-21 21:27:56:886 [ debug nextcloud.gui.folder ./src/gui/folder.cpp:182 ] [ OCC::Folder::checkLocalPath ]:    Checked local path ok
2024-11-21 21:27:56:886 [ info nextcloud.sync.configfile ./src/libsync/configfile.cpp:1266 ]:   Adding user defined ignore list to csync: "/home/user/.config/Nextcloud/sync-exclude.lst"
2024-11-21 21:27:57:035 [ info nextcloud.sync.database ./src/common/syncjournaldb.cpp:339 ]:    sqlite3 version "3.45.1"
2024-11-21 21:27:57:035 [ info nextcloud.sync.database ./src/common/syncjournaldb.cpp:351 ]:    sqlite3 locking_mode= "exclusive"
2024-11-21 21:27:57:035 [ info nextcloud.sync.database ./src/common/syncjournaldb.cpp:359 ]:    sqlite3 journal_mode= "wal"
2024-11-21 21:27:57:035 [ info nextcloud.sync.database ./src/common/syncjournaldb.cpp:381 ]:    sqlite3 synchronous= "NORMAL"
2024-11-21 21:27:57:035 [ debug nextcloud.sync.database ./src/common/syncjournaldb.cpp:3062 ]   [ OCC::SyncJournalDb::commitInternal ]: Transaction commit "checkConnect" and starting new transaction
2024-11-21 21:27:57:035 [ debug nextcloud.sync.database ./src/common/syncjournaldb.cpp:919 ]    [ OCC::SyncJournalDb::tableColumns ]:   Columns in the current journal: QList("phash", "pathlen", "path", "inode", "uid", "gid", "mode", "modtime", "type", "md5", "fileid", "remotePerm", "filesize", "ignoredChildrenRemote", "contentChecksum", "contentChecksumTypeId", "e2eMangledName", "isE2eEncrypted", "isShared", "lastShareStateFetchedTimestmap", "sharedByMe", "lock", "lockType", "lockOwnerDisplayName", "lockOwnerId", "lockOwnerEditor", "lockTime", "lockTimeout", "lockToken")
2024-11-21 21:27:57:036 [ debug nextcloud.sync.database ./src/common/syncjournaldb.cpp:3062 ]   [ OCC::SyncJournalDb::commitInternal ]: Transaction commit "update database structure: add inode index" and starting new transaction
2024-11-21 21:27:57:036 [ debug nextcloud.sync.database ./src/common/syncjournaldb.cpp:3062 ]   [ OCC::SyncJournalDb::commitInternal ]: Transaction commit "update database structure: add path index" and starting new transaction
2024-11-21 21:27:57:036 [ debug nextcloud.sync.database ./src/common/syncjournaldb.cpp:3062 ]   [ OCC::SyncJournalDb::commitInternal ]: Transaction commit "update database structure: add parent index" and starting new transaction
2024-11-21 21:27:57:036 [ debug nextcloud.sync.database ./src/common/syncjournaldb.cpp:919 ]    [ OCC::SyncJournalDb::tableColumns ]:   Columns in the current journal: QList("path", "chunk", "transferid", "errorcount", "size", "modtime", "contentChecksum")
2024-11-21 21:27:57:036 [ debug nextcloud.sync.database ./src/common/syncjournaldb.cpp:919 ]    [ OCC::SyncJournalDb::tableColumns ]:   Columns in the current journal: QList("path", "baseFileId", "baseEtag", "baseModtime", "basePath")
2024-11-21 21:27:57:036 [ debug nextcloud.sync.database ./src/common/syncjournaldb.cpp:3062 ]   [ OCC::SyncJournalDb::commitInternal ]: Transaction commit "update database structure: add e2eMangledName index" and starting new transaction
2024-11-21 21:27:57:036 [ debug nextcloud.sync.database ./src/common/syncjournaldb.cpp:3062 ]   [ OCC::SyncJournalDb::commitInternal ]: Transaction commit "update database structure: add basePath index" and starting new transaction
2024-11-21 21:27:57:036 [ debug nextcloud.sync.database ./src/common/syncjournaldb.cpp:919 ]    [ OCC::SyncJournalDb::tableColumns ]:   Columns in the current journal: QList("path", "lastTryEtag", "lastTryModtime", "retrycount", "errorstring", "lastTryTime", "ignoreDuration", "renameTarget", "errorCategory", "requestId")
2024-11-21 21:27:57:036 [ debug nextcloud.sync.database ./src/common/syncjournaldb.cpp:3062 ]   [ OCC::SyncJournalDb::commitInternal ]: Transaction commit "checkConnect End" 
2024-11-21 21:27:57:037 [ info nextcloud.gui.folder.manager ./src/gui/folderman.cpp:1237 ]: Adding folder to Folder Map  OCC::Folder(0x654fe364ce50) "1"
2024-11-21 21:27:57:037 [ debug nextcloud.gui.folderwatcher ./src/gui/folderwatcher_linux.cpp:100 ] [ OCC::FolderWatcherPrivate::slotAddFolderRecursive ]:  (+) Watcher: "/home/user/Nextcloud/"
2024-11-21 21:27:57:299 [ debug nextcloud.gui.folderwatcher ./src/gui/folderwatcher_linux.cpp:126 ] [ OCC::FolderWatcherPrivate::slotAddFolderRecursive ]:      `-> and 1979 subdirectories
2024-11-21 21:27:57:299 [ debug nextcloud.gui.folderwatcher ./src/gui/folderwatcher.cpp:122 ]   [ OCC::FolderWatcher::startNotificationTestWhenReady ]: setModTime "/home/user/Nextcloud/.nextcloudsync.log" 1731942336
2024-11-21 21:27:57:299 [ info nextcloud.gui.folder.manager ./src/gui/folderman.cpp:702 ]:  Schedule folder  "1"  to sync!
2024-11-21 21:27:57:299 [ info nextcloud.gui.folder.manager ./src/gui/folderman.cpp:706 ]:  Folder is not ready to sync, not scheduled!
2024-11-21 21:27:57:299 [ warning nextcloud.gui.application ./src/gui/application.cpp:519 ]:    Migration result AccountManager::AccountsRestoreResult:  OCC::AccountManager::AccountsRestoreSuccess
2024-11-21 21:27:57:299 [ warning nextcloud.gui.application ./src/gui/application.cpp:520 ]:    Folders migrated:  1
2024-11-21 21:27:57:299 [ warning nextcloud.gui.application ./src/gui/application.cpp:521 ]:    No accounts were migrated, prompting user to set up accounts and folders from scratch.
2024-11-21 21:27:57:314 [ warning qt.qml.typeregistration unknown:0 ]:  Invalid QML element name "Activity"; value type names should begin with a lowercase letter
2024-11-21 21:27:57:314 [ warning qt.qml.typeregistration unknown:0 ]:  Invalid QML element name "TalkNotificationData"; value type names should begin with a lowercase letter
2024-11-21 21:27:57:314 [ warning qt.qml.typeregistration unknown:0 ]:  Invalid QML element name "UserStatus"; value type names should begin with a lowercase letter
2024-11-21 21:27:57:314 [ warning qt.qml.typeregistration unknown:0 ]:  Invalid QML element name "Sharee"; value type names should begin with a lowercase letter
2024-11-21 21:27:57:320 [ info nextcloud.sync.clientproxy ./src/libsync/clientproxy.cpp:103 ]:  Set proxy configuration to use the preferred system proxy for http tcp connections
2024-11-21 21:27:57:325 [ warning qt.core.qobject.connect unknown:0 ]:  QObject::connect(QNetworkInformation, OCC::Application): invalid nullptr parameter
2024-11-21 21:27:57:464 [ warning qt.qml.context unknown:0 ]:   qrc:/qml/src/gui/tray/MainWindow.qml:313:29 Parameter "index" is not declared. Injection of parameters into signal handlers is deprecated. Use JavaScript functions with formal parameters instead.
2024-11-21 21:27:57:466 [ warning default unknown:0 ]:  QPainter::begin: Paint device returned engine == 0, type: 3
2024-11-21 21:27:57:466 [ warning default unknown:0 ]:  QPainter::save: Painter not active
2024-11-21 21:27:57:466 [ warning default unknown:0 ]:  QPainter::worldTransform: Painter not active
2024-11-21 21:27:57:466 [ warning default unknown:0 ]:  QPainter::worldTransform: Painter not active
2024-11-21 21:27:57:466 [ warning default unknown:0 ]:  QPainter::setPen: Painter not active
2024-11-21 21:27:57:466 [ warning default unknown:0 ]:  QPainter::setBrush: Painter not active
2024-11-21 21:27:57:466 [ warning default unknown:0 ]:  QPainter::setRenderHint: Painter must be active to set rendering hints
2024-11-21 21:27:57:466 [ warning default unknown:0 ]:  QPainter::setRenderHint: Painter must be active to set rendering hints
2024-11-21 21:27:57:466 [ warning default unknown:0 ]:  QPainter::opacity: Painter not active
2024-11-21 21:27:57:466 [ warning default unknown:0 ]:  QPainter::brush: Painter not active
2024-11-21 21:27:57:466 [ warning default unknown:0 ]:  QPainter::pen: Painter not active
2024-11-21 21:27:57:466 [ warning default unknown:0 ]:  QPainter::setPen: Painter not active
2024-11-21 21:27:57:466 [ warning default unknown:0 ]:  QPainter::setOpacity: Painter not active
2024-11-21 21:27:57:466 [ warning default unknown:0 ]:  QPainter::drawPath: Painter not active
2024-11-21 21:27:57:466 [ warning default unknown:0 ]:  QPainter::setPen: Painter not active
2024-11-21 21:27:57:466 [ warning default unknown:0 ]:  QPainter::setOpacity: Painter not active
2024-11-21 21:27:57:466 [ warning default unknown:0 ]:  QPainter::setBrush: Painter not active
2024-11-21 21:27:57:466 [ warning default unknown:0 ]:  QPainter::drawPath: Painter not active
2024-11-21 21:27:57:466 [ warning default unknown:0 ]:  QPainter::setBrush: Painter not active
2024-11-21 21:27:57:466 [ warning default unknown:0 ]:  QPainter::setOpacity: Painter not active
2024-11-21 21:27:57:466 [ warning default unknown:0 ]:  QPainter::restore: Unbalanced save/restore
2024-11-21 21:27:57:466 [ warning default unknown:0 ]:  QPainter::begin: Paint device returned engine == 0, type: 3
2024-11-21 21:27:57:466 [ warning default unknown:0 ]:  QPainter::setCompositionMode: Painter not active