Page 1 of 1

How do I find the location of mtpaint?

Posted: Fri May 10, 2024 7:39 am
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.


Re: How do I find the location of mtpaint?

Posted: Fri May 10, 2024 8:41 am
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


Re: How do I find the location of mtpaint?

Posted: Fri May 10, 2024 8:50 am
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.


Re: How do I find the location of mtpaint?

Posted: Fri May 10, 2024 8:51 am
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:


Re: How do I find the location of mtpaint?

Posted: Fri May 10, 2024 10:13 am
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.


Re: How do I find the location of mtpaint?

Posted: Fri May 10, 2024 10:29 am
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 "$@"

Re: How do I find the location of mtpaint?

Posted: Fri May 10, 2024 10:34 am
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".