[opensuse] kde3 vs kde4 file associations
For kde3, /opt/kde3/share/ contains directories like applnk, icons, mimelnk. When we installed system-wide packages, we added file associations and all to these directories. I am looking for the KDE4 counterparts. There is a /usr/share/applnk and /usr/share/icons. But no /usr/share/mimelnk. Perhaps that is now /usr/share/mime. Is there a good description of how this is structured in kde4? Especially from the pov of system-wide software installation? That is, not setting these things interactively in some KDE app (e.g., dolphin)? The closest discussion I found on KDE was http://forum.kde.org/viewtopic.php?f=66&t=49010 which did not really shed any light on the topic. -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday 22 of March 2010, Roger Oberholtzer wrote:
For kde3, /opt/kde3/share/ contains directories like applnk, icons, mimelnk. When we installed system-wide packages, we added file associations and all to these directories. I am looking for the KDE4 counterparts. There is a /usr/share/applnk
/usr/share/applications , /usr/share/applnk is obsolete
and /usr/share/icons. But
no /usr/share/mimelnk. Perhaps that is now /usr/share/mime.
http://standards.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec... But if what you want to achieve is changing default associations for mimetypes, then it's InitialPreference= in .desktop files or mimeapps.list file in ~/.local/share/applications or /usr/share/applications (create a change manually using systemsettings to see the format). -- Lubos Lunak openSUSE Boosters team, KDE developer l.lunak@suse.cz , l.lunak@kde.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, 2010-03-22 at 15:16 +0100, Lubos Lunak wrote:
On Monday 22 of March 2010, Roger Oberholtzer wrote:
For kde3, /opt/kde3/share/ contains directories like applnk, icons, mimelnk. When we installed system-wide packages, we added file associations and all to these directories. I am looking for the KDE4 counterparts. There is a /usr/share/applnk
/usr/share/applications , /usr/share/applnk is obsolete
and /usr/share/icons. But
no /usr/share/mimelnk. Perhaps that is now /usr/share/mime.
http://standards.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec...
But if what you want to achieve is changing default associations for mimetypes, then it's InitialPreference= in .desktop files or mimeapps.list file in ~/.local/share/applications or /usr/share/applications (create a change manually using systemsettings to see the format).
Thanks. That helped with part of my task. I want to add new mime types. I also want to add the KDE info to specify which application to run for that mime type. That is why I was adding to both mimelnk and applnk. I see how the info above deals with the mime types, glob matching and icons. What I do not see is how I tell KDE which app to run for that mime type. I am guessing that is also described somewhere... -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday 22 of March 2010, Roger Oberholtzer wrote:
I want to add new mime types. I also want to add the KDE info to specify which application to run for that mime type. That is why I was adding to both mimelnk and applnk. I see how the info above deals with the mime types, glob matching and icons. What I do not see is how I tell KDE which app to run for that mime type. I am guessing that is also described somewhere...
See 'MimeType' in http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-lates... -- Lubos Lunak openSUSE Boosters team, KDE developer l.lunak@suse.cz , l.lunak@kde.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, 2010-03-22 at 19:31 +0100, Lubos Lunak wrote:
On Monday 22 of March 2010, Roger Oberholtzer wrote:
I want to add new mime types. I also want to add the KDE info to specify which application to run for that mime type. That is why I was adding to both mimelnk and applnk. I see how the info above deals with the mime types, glob matching and icons. What I do not see is how I tell KDE which app to run for that mime type. I am guessing that is also described somewhere...
See 'MimeType' in http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-lates...
Did I miss the part where specific applications are paired with mime types? So that if a user clicks on a file called file.myType, it runs myApp file.myType That is the part I am missing. All the other info in that doc is useful. But I don't see this bit. -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue, 2010-03-23 at 08:20 +0100, Roger Oberholtzer wrote:
On Mon, 2010-03-22 at 19:31 +0100, Lubos Lunak wrote:
On Monday 22 of March 2010, Roger Oberholtzer wrote:
I want to add new mime types. I also want to add the KDE info to specify which application to run for that mime type. That is why I was adding to both mimelnk and applnk. I see how the info above deals with the mime types, glob matching and icons. What I do not see is how I tell KDE which app to run for that mime type. I am guessing that is also described somewhere...
See 'MimeType' in http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-lates...
Ignore my earlier post. Too early. No coffee... I thought it was the mime info again. Sorry. I think it may be what I need. Thanks! -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
Lubos Lunak
-
Roger Oberholtzer