LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-14-2020, 12:05 PM   #1
postcd
Member
 
Registered: Oct 2013
Posts: 527

Rep: Reputation: Disabled
How to match any/all mime type on Linux?


Hello,

i can use MimeType=text/plain or MimeType=text/* for broader match
But how to define match any/all MimeTypes?

In this case i am adjusting .desktop file on Arch, ~/.local/share/kservices5/ServiceMenus/ (https://develop.kde.org/docs/dolphin/service-menus/)
 
Old 12-14-2020, 01:26 PM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
It's a good question.
How far did you get with it?
Your thread title in a search engine.
Check that out, let us know how it goes.
Looks like creating a new mimetype might be one option among others.
 
1 members found this post helpful.
Old 12-14-2020, 02:55 PM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,847

Rep: Reputation: 8010Reputation: 8010Reputation: 8010Reputation: 8010Reputation: 8010Reputation: 8010Reputation: 8010Reputation: 8010Reputation: 8010Reputation: 8010Reputation: 8010
Quote:
Originally Posted by postcd View Post
Hello,
i can use MimeType=text/plain or MimeType=text/* for broader match But how to define match any/all MimeTypes?

In this case i am adjusting .desktop file on Arch, ~/.local/share/kservices5/ServiceMenus/ (https://develop.kde.org/docs/dolphin/service-menus/)
As with most of the threads you've opened here over several years, you omit any real details or explain what it is you're trying to do. And as ondoho points out, you also appear to have (again) put no effort into doing anything on your own.

You imply you're using KDE...did you bother to look in KDE settings, under "Applications"?? Where you **SET MIME TYPES**? Very amply documented as well.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to capture 1000 lines before a string match and 1000 line a string match including line of string match ? sysmicuser Linux - Newbie 12 11-14-2017 05:21 AM
Trying to rename file extensions to match MIME filetype PunkTiger Programming 20 07-05-2016 05:50 PM
Getting Content-type/Mime type of the file using shellscript swathikumar Linux - Newbie 9 05-24-2011 11:48 PM
Get file icon from extension, file type, or mime-type Guitarist88 Programming 3 04-21-2008 10:58 AM
Warning ___ specifies undefined mime type/service type mbvpixies78 Linux - Software 0 12-29-2007 10:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration