Follow up from #6356 due to concerns raised by @lexo-mfleuti. See https://github.com/owncloud/client/issues/6356#issuecomment-468580876.
Currently the client doesn't autocreate a link share if expiry is required. It could do it though and use the specified default expiry offset.
Context menu idea
Screenshot: draft of how it could look like

Configurable context menu
It would be great if the user could select which context menu elements are needed to keep the context menu as compact (efficient) as possible.

Currently the client doesn't autocreate a link share if expiry is required. It could do it though and use the specified default expiry offset.
@ckamm works fo me!
2nd step could be, to bring all menu entries to the root level of the context menu. Visually I think this is a mess, but for efficiency it totally makes sense…
@lexo-mfleuti Can you test the shares with expiry using https://download.owncloud.com/desktop/testing/ownCloud-2.5.4.11614.11431-rc1.msi and report back if it works?
For your other comments (configurable context menu), I think it's better to create a new issue as this one here is really just for the bugfix of the link creation (thanks!).
@guruz Just tried it out. The bug is fixed. Very nice thank you! I can now share files much faster already. Though it would be very cool if you could also change the layout of the context menu to something like I explained above. That would be the dream ;)
Is the link creator aware that the created link will silently disappear after a while?
No, what do you mean by "silently disappear"? You mean like "removed from clipboard"?
In this case, a max. expiration date has been set by the ownCloud server admin. The user then creates a link with the desktop client that's available in the clipboard. But the user isn't aware the link has an expiration date. After expiration, the link disappears and is no longer valid.
@ckamm adding the expiration date/period to the context menu entry?
@ckamm adding the expiration date/period to the context menu entry?
I think that would be an even better solution solution than what I suggested in my screenshot above. Like
Copy public link to clipboard (link validity: 26.03.2019)
I'm glad it works! The further ui refinements don't fit into 2.5.4. I'll make new tickets against 2.6. This one seems done to me.