It is currently Wed Jul 03, 2024 5:15 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Use Win10 Right-Click ‘Edit’ to Launch Gimp Instead of MSPaint
PostPosted: Fri Jan 11, 2019 3:30 pm  (#1) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13068
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
Windows 10 is configured to open image files by default.
With the new universal Windows “Photos” app.
This lets you quickly view images,
without launching more advanced software.

However,
when it’s time to actually edit an image,
I prefer to use Gimp.
Instead of setting Gimp as the default app for all image file types,
which would impede my ability to quickly view images.
I can simply right-click on the desired image file and choose,
Open With > GNU Image Manipulation Program.

Image

This seems simple,
right?
Well,
there’s a little problem with this:
the “Open With” menu isn’t available when a user selects multiple files.

For whatever reason,
Microsoft forbids users from easily opening files in a non-default application,
when any more than a single file is selected,
including selections of multiple files that all share the same file type.
This can be seen in the screenshot below.
Where the “Open With” option in the right-click menu is not present,
when multiple image files are selected.

Image

There is a solution and it's the “Edit” option in the right-click menu.
The “Edit” option is always available no matter how many image files are selected,
even those with different file types.
However,
this isn’t a perfect solution,
because using the “Edit” option in the right-click menu,
opens the selected images in MS Paint,
which is far from the preferred image editing software most users wish to use.

There is a workaround for this.
The workaround,
is to change the application that’s launched when the “Edit” option is selected.

To do this,
you’ll need to use the Windows Registry.


Note:
Before you continue,
be sure you’re familiar with the Registry and the basics for modifying it.
Be advised,
that making other changes in your Registry,
may cause permanent damage to your Windows installation,
or even your data.
Therefore,
please be careful when making these changes,
be sure you have backups of all important data before you proceed.


To get started,
launch the Windows Registry Editor.
By searching for “regedit” from the Start Menu,
or Start Screen (Windows Vista through Windows 10),
or by going to Start > Run and typing “regedit”.

Once in the Registry Editor,
use the folder hierarchy on the left,
to navigate to the following location:


Computer\HKEY_CLASSES_ROOT\SystemFileAssociations\image\shell\edit\command


Once you’ve arrived at the “command” key,
you’ll see a single string on the right side of the window with the value,


“%systemroot%\system32\mspaint.exe” “%1”

Image

This tells Windows to launch MS Paint,
when the user selects the “Edit” option after right-clicking on an image file.
We can change this entry to point to any compatible application we want.
By double-clicking the registry string to open it,
and replacing the path inside the first set of parentheses in the “Value data” box.

Change the path to point to your installation of Gimp.
In my case this location is at,
"E:\Programs\GIMP 2\bin\gimp-2.8.exe".

You can find Gimp’s installed location,
by right-clicking on its shortcut and choosing Properties.
The path in the “Target” box is what you’ll need to copy into the Registry Value Data string box.


Image

When you copy the new path,
be sure you keep the existing parentheses,
do not remove or modify the trailing,
“%1”
which is important for the way that Windows passes the selected image files,
to the defined application.

The complete contents of the Value Data field string,
would look like this for me:


"E:\Programs\GIMP 2\bin\gimp-2.8.exe" "%1"

Once this change has been made.
There’s no need to reboot or log off.
Gimp will take over immediately as the “Edit” method in the right-click menu.

To test it,
head to your desktop (or any location in Windows explorer),
select a group of images,
right-click,
choose Edit.
All of your selected images will now open with Gimp.



If you ever want to change the Windows Edit application again in the future,
just grab the correct path of your desired application,
head back to the Registry path identified above and repeat the process.
Only this time,
you’ll be replacing your first custom choice for an image editing app,
instead of the default MS Paint.

If you want to set MS Paint as the default again,
just put its original path back in place,
which I've listed below for your reference:


"%systemroot%\\system32\\mspaint.exe" "%1"


I've included a "Reg File",
that can be used to restore MSPaint,
back as the default editor used,
when "Edit" from the right-click menu is selected.


Attachment:
Restore_MSPaint_Right_Click_Menue.zip [438 Bytes]
Downloaded 246 times

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Use Win10 Right-Click ‘Edit’ to Launch Gimp Instead of MSPaint
PostPosted: Fri Jan 11, 2019 5:38 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Apr 15, 2017
Posts: 1826
Why not just simply put a shortcut to Gimp in the Right-Click "Send To" command? Back when I used to use Windows, that's where I put all my most used program shortcuts. It's much simpler than your solution and will work with any files...

https://www.howtogeek.com/howto/windows ... d-to-menu/


Top
 Post subject: Re: Use Win10 Right-Click ‘Edit’ to Launch Gimp Instead of MSPaint
PostPosted: Fri Jan 11, 2019 6:05 pm  (#3) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13068
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
racer-x wrote:
Why not just simply put a shortcut to Gimp in the Right-Click "Send To" command? Back when I used to use Windows, that's where I put all my most used program shortcuts. It's much simpler than your solution and will work with any files...

https://www.howtogeek.com/howto/windows ... d-to-menu/

Yes I see the simplicity of this.
With this method,
the "edit" in the right-click menu can be left as is.

Thanks for adding this method Racer.


:bigthup

Edit:
I guess I like doing things the hard way.
:hehe

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Win7 Games for Win10

2

No new posts Attachment(s) Canny Edge Detection Gimp 2.10 Win10 32/64 bit.

25

No new posts Attachment(s) get a window to open on first click?

4

No new posts Get a mouse click or select a pixel in an image in a python plugin?

3

No new posts Cannot edit text in a layer from a PSD file

1



* Login  



Powered by phpBB3 © phpBB Group