client icon indicating copy to clipboard operation
client copied to clipboard

Extend "restart required" dialog to Windows

Open nicholas-wilson-au opened this issue 2 years ago • 11 comments

Pre-submission Checks

  • [X] I checked for similar issues, but could not find any. I also checked the closed issues. I could not contribute additional information to any existing issue.
  • [X] I will take the time to fill in all the required fields. I know that the bug report may be dismissed otherwise due to lack of information.

Describe the bug

I am getting an ownCloud notification when I log in to my PC that there is an update available and that I should restart the client to start the update. However, restarting the client nor restarting the PC results in the update starting.

Expected behavior

I expect that after closing the program, I should get a UAC request in windows to allow the updater to run.

Steps to reproduce the issue

Start the owncloud client. Get the pop up. right click on the owncloud client taskbar tray icon and select quit owncloud. Wait.

Screenshots

https://cloud.owncloud.com/s/mFEXiz1bCBku780

Logs

https://cloud.owncloud.com/s/k4hSM1oadCTx8K0

Client version number

4.0.10896

Desktop environment (Linux only)

No response

Client package version and origin (Linux only)

No response

Installation path (Windows only)

c:\program files\owncloud\owncloud.exe

Server information

cloud.owncloud.com

Additional context

For reference, while collecting the system information and unrelated program, Notepad++, showed an upgrade was available and its behavior was as expected.

nicholas-wilson-au avatar Jun 28 '23 08:06 nicholas-wilson-au

This notification isn't really actionable:

CleanShot 2023-07-04 at 14 44 36@2x

Restart needs to be performed from the Settings screen:

CleanShot 2023-07-04 at 14 45 55@2x

Then it successfully updates:

CleanShot 2023-07-04 at 14 46 57@2x

michaelstingl avatar Jul 04 '23 12:07 michaelstingl

Yes we still just emit the equivalent of balloon notifications... https://github.com/owncloud/client/issues/7552

TheOneRing avatar Jul 04 '23 12:07 TheOneRing

Notepad++, showed an upgrade was available and its behavior was as expected.

Notepad++ shows own update pop-up, not the native Win notification:

CleanShot 2023-07-04 at 14 52 19@2x

michaelstingl avatar Jul 04 '23 12:07 michaelstingl

Yes we still just emit the equivalent of balloon notifications... #7552

Could a click on the Win balloon notification open the Settings screen?

michaelstingl avatar Jul 04 '23 12:07 michaelstingl

Not on Windows https://doc.qt.io/qt-6/qsystemtrayicon.html#messageClicked . I'd suggest to implement notifications for Windows. Luckily I'm maintaining a project for that xD

TheOneRing avatar Jul 04 '23 12:07 TheOneRing

This issue was marked stale because it has been open for 30 days with no activity. Remove the stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Aug 04 '23 00:08 github-actions[bot]

The issue was marked as stale for 7 days and closed automatically.

github-actions[bot] avatar Aug 12 '23 00:08 github-actions[bot]

Implement a dialogue like mentioned in https://github.com/owncloud/client/issues/10980#issuecomment-1620198377

TheOneRing avatar Sep 22 '23 10:09 TheOneRing

I ran in the very same problem. I manually closed the owncloud client and reopened it: Nothing happened.

The button "Restart & update" is hidden at the bottom of the ownCloud Client Window. grafik

rpausch-owncloud avatar Jan 18 '24 14:01 rpausch-owncloud

Tested with ownCloud 6.0.0..13174-daily20240121 [ab204c]

image

But clicking Restart now button closes the client but doesn't restart it :x: Log: ownCloud.log

CC @TheOneRing

saw-jan avatar Jan 22 '24 08:01 saw-jan

Tested on ownCloud-6.0.0.13577-daily20240325

Screenshot from 2024-03-28 16-33-24

  • Clicking Restart now restarts the client :heavy_check_mark:
  • The dialog appears again and update doesn't start :x:

saw-jan avatar Mar 28 '24 10:03 saw-jan

@saw-jan How was the client started? Did it have command-line options?

Note to myself and @TheOneRing : we do not check for updates after start-up if the user tried to open a file or if the settings dialog is requested through the cmdline. And with a restart, we pass these options along again.

erikjv avatar Jul 09 '24 14:07 erikjv

Tested with ownCloud-6.0.0.14181-daily20240709-x86_64.AppImage, the update is downloaded and Restart now button restarts the client. :heavy_check_mark:

Screenshot from 2024-07-10 09-49-39

How was the client started? Did it have command-line options?

I just ran ./ownCloud-6.0.0.14181-daily20240709-x86_64.AppImage in the terminal

saw-jan avatar Jul 10 '24 04:07 saw-jan

The restart works now.

saw-jan avatar Jul 10 '24 04:07 saw-jan

@saw-jan How was the client started? Did it have command-line options?

Note to myself and @TheOneRing : we do not check for updates after start-up if the user tried to open a file or if the settings dialog is requested through the cmdline. And with a restart, we pass these options along again.

Can you please open an issue?

TheOneRing avatar Jul 10 '24 05:07 TheOneRing