How do I find the location of mtpaint?

New to Puppy and have questions? Start here

Moderator: Forum moderators

Post Reply
User avatar
Governor
Posts: 905
Joined: Sat Nov 12, 2022 7:11 pm
Has thanked: 230 times
Been thanked: 46 times

How do I find the location of mtpaint?

Post by Governor »

In the Rox file manager, I tried to open an image file with the .wepb extension.

I get this messsage:

"No run action specified for files of this type (image/webp) - you can set a run action by choosing `Set Run Action' from the File menu, or you can just drag the file to an application."

Ok, so I want to set the run action for the file type. I couldn't find the mtpaint location to put in the shell command field.
I started the mtpaint app and tried the Htop System Process Viewer, but I could not see the location of mtpaint there.

I also tried Findrun and pFind and I could not see the location of mtpaint.

How do I find the location of mtpaint?
Thanks.

Governor

some1
Posts: 86
Joined: Wed Aug 19, 2020 4:32 am
Has thanked: 18 times
Been thanked: 15 times

Re: How do I find the location of mtpaint?

Post by some1 »

try

Code: Select all

which mtpaint

will probably give you
/usr/bin/mtpaint

if its there - you should have seen it in FindnRun

User avatar
OscarTalks
Posts: 623
Joined: Tue Jul 14, 2020 10:11 pm
Location: London UK
Has thanked: 2 times
Been thanked: 247 times

Re: How do I find the location of mtpaint?

Post by OscarTalks »

In terminal

Code: Select all

which mtpaint

will give you the location of the mtpaint executable.
For ROX-Filer file-type associations you may find it better to use the .desktop file which you would expect to find as something like:-
/usr/share/applications/mtpaint.desktop
BUT be aware that in many Puppies, mtpaint is not compiled with webp support.

HerrBert
Posts: 359
Joined: Mon Jul 13, 2020 6:14 pm
Location: Germany, NRW
Has thanked: 18 times
Been thanked: 128 times

Re: How do I find the location of mtpaint?

Post by HerrBert »

Governor wrote: Fri May 10, 2024 7:39 am

In the Rox file manager, I tried to open an image file with the .wepb extension.

I get this messsage:

"No run action specified for files of this type (image/webp) - you can set a run action by choosing `Set Run Action' from the File menu, or you can just drag the file to an application."

Ok, so I want to set the run action for the file type. I couldn't find the mtpaint location to put in the shell command field.
I started the mtpaint app and tried the Htop System Process Viewer, but I could not see the location of mtpaint there.

I also tried Findrun and pFind and I could not see the location of mtpaint.

How do I find the location of mtpaint?
Thanks.

mtpaint is in /usr/bin, which is in the $PATH. So you can simply write exec mtpaint "$@" in the shell command field.
If you want to get the location of mtpaint, open a terminal and type which mtpaint

But you may try to open your .webp image from mtpaint File -> Open dialog first to see, if your version of mtpaint is compiled with support for .webp images.

[edit]typed to slow :oops: :lol:

User avatar
Governor
Posts: 905
Joined: Sat Nov 12, 2022 7:11 pm
Has thanked: 230 times
Been thanked: 46 times

Re: How do I find the location of mtpaint?

Post by Governor »

some1 wrote: Fri May 10, 2024 8:41 am

try

Code: Select all

which mtpaint

will probably give you
/usr/bin/mtpaint

if its there - you should have seen it in FindnRun

Oh yes, I saw "mtPaint image editor", but I could not see its location.

Governor

User avatar
Governor
Posts: 905
Joined: Sat Nov 12, 2022 7:11 pm
Has thanked: 230 times
Been thanked: 46 times

Re: How do I find the location of mtpaint?

Post by Governor »

HerrBert wrote: Fri May 10, 2024 8:51 am
Governor wrote: Fri May 10, 2024 7:39 am

In the Rox file manager, I tried to open an image file with the .wepb extension.

I get this messsage:

"No run action specified for files of this type (image/webp) - you can set a run action by choosing `Set Run Action' from the File menu, or you can just drag the file to an application."

Ok, so I want to set the run action for the file type. I couldn't find the mtpaint location to put in the shell command field.
I started the mtpaint app and tried the Htop System Process Viewer, but I could not see the location of mtpaint there.

I also tried Findnrun and pFind and I could not see the location of mtpaint.

How do I find the location of mtpaint?
Thanks.

mtpaint is in /usr/bin, which is in the $PATH. So you can simply write exec mtpaint "$@" in the shell command field.
If you want to get the location of mtpaint, open a terminal and type which mtpaint

But you may try to open your .webp image from mtpaint File -> Open dialog first to see, if your version of mtpaint is compiled with support for .webp images.

[edit]typed to slow :oops: :lol:

My version of mtpaint can open .webp files, and so far, that is how I have been using mtpaint with .webp files. In Rox, I copy the path to the file I want to open, I open the mtpaint app, and paste the file path into the appropriate place in the app. I am tired of doing it that way, which is why I want to open the file with a double click or right click and use "open with".

I used:

Code: Select all

/usr/bin/mtpaint "$@"

in the Set run action box and it works.
The funny thing is the

Code: Select all

/root/.config/rox.sourceforge.net/MIME-types/image_webp

has this:

Code: Select all

exec /usr/bin/mtpaint "$@"

Governor

User avatar
Governor
Posts: 905
Joined: Sat Nov 12, 2022 7:11 pm
Has thanked: 230 times
Been thanked: 46 times

Re: How do I find the location of mtpaint?

Post by Governor »

OscarTalks wrote: Fri May 10, 2024 8:50 am

In terminal

Code: Select all

which mtpaint

will give you the location of the mtpaint executable.
For ROX-Filer file-type associations you may find it better to use the .desktop file which you would expect to find as something like:-
/usr/share/applications/mtpaint.desktop
BUT be aware that in many Puppies, mtpaint is not compiled with webp support.

I find that bit about the .desktop confusing.

My version of mtpaint can open .webp files.
I have got mtpaint to open .webp files now, both with "Run action" and "Open with".

Governor

Post Reply

Return to “Beginners Help”