Update Windows Recent Documents on Open/Save #22524

Closed
opened 2010-06-06 23:09:29 +02:00 by Harley Acheson · 7 comments
Member

%%%On Windows, when we double-click on a “blend” file to launch Blender with it, the OS will add that document to its own “Recent Documents” list. However, if we open or save a document within Blender that list is NOT updated. This is because we don’t use OS-supplied dialogs for opening and saving.

The following patch informs Windows, using “SHAddToRecentDocs”, when Blender opens or saves a document so that the OS knows about them.

On Windows XP these recent items can be seen in the “Documents” list on the Start Menu. On Windows 7, however, this information is used in new ways: If Blender is added to the “Start Menu” as a main item it will be shown with a per-application fly-out menu showing recent blend files. If Blender is “pinned” to the new Windows 7 Taskbar, you can right-click on it to see a “jump list” that will include recently-used documents.
%%%

%%%On Windows, when we double-click on a “blend” file to launch Blender with it, the OS will add that document to its own “Recent Documents” list. However, if we open or save a document within Blender that list is NOT updated. This is because we don’t use OS-supplied dialogs for opening and saving. The following patch informs Windows, using “SHAddToRecentDocs”, when Blender opens or saves a document so that the OS knows about them. On Windows XP these recent items can be seen in the “Documents” list on the Start Menu. On Windows 7, however, this information is used in new ways: If Blender is added to the “Start Menu” as a main item it will be shown with a per-application fly-out menu showing recent blend files. If Blender is “pinned” to the new Windows 7 Taskbar, you can right-click on it to see a “jump list” that will include recently-used documents. %%%
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Member

%%%Taking a look, seems interesting and quick to add%%%

%%%Taking a look, seems interesting and quick to add%%%
Author
Member

%%%Looks liked the Shell32 API call "SHAddToRecentDocs" is only available in Windows XP and later.

I think this patch, if used as-is, would make Blender not load on Windows 2000, which is the oldest Windows OS that Blender is supposed to support.

Therefore "SHAddToRecentDocs" should be loaded and used dynamically, not statically. I'm not sure how this is done in C...
%%%

%%%Looks liked the Shell32 API call "SHAddToRecentDocs" is only available in Windows XP and later. I think this patch, if used as-is, would make Blender not load on Windows 2000, which is the oldest Windows OS that Blender is supposed to support. Therefore "SHAddToRecentDocs" should be loaded and used dynamically, not statically. I'm not sure how this is done in C... %%%
Member

%%%AFAIK we have Windows XP as minimum supported OS anyway, so shouldn't be a problem to have as is.%%%

%%%AFAIK we have Windows XP as minimum supported OS anyway, so shouldn't be a problem to have as is.%%%
Author
Member

%%%Thanks Nathan! I hadn't noticed that XP had become the Windows minimum, so the patch should be fine as is. So I'll just have to take back my objection to my own patch.%%%

%%%Thanks Nathan! I hadn't noticed that XP had become the Windows minimum, so the patch should be fine as is. So I'll just have to take back my objection to my own patch.%%%
Member

%%%Committed in svn (slightly modified, but research and original patch was still useful)
Thanks Harley!
%%%

%%%Committed in svn (slightly modified, but research and original patch was still useful) Thanks Harley! %%%
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#22524
No description provided.