• Changing file associations

    From Borden@21:1/5 to All on Sat Jul 23 08:10:01 2022
    KOrganizer somehow muscled its way to being the default program for all text files. Is there a way to make Kate the default program without having to change every single file association manually?

    For some Windows programs, there's a way to tell Windows to make it the default program for all supported file types. Does something similar exist for KDE?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From local10@21:1/5 to All on Sat Jul 23 19:30:01 2022
    KOrganizer somehow muscled its way to being the default program for all text files. Is there
    a way to make Kate the default program without having to  change every single file
    association manually?


    Do you have "systemsettings" package installed? Open the systemsetting app > Applications > File Associations and from then you can assign apps to handle several file extensions at once.


    For some Windows programs, there's a way to tell Windows to make it the default program
    for all supported file types. Does something similar exist for KDE?

    You could try adding "*.*" as a pattern (without quotes) to one of the known file types and see how well it works. Personally I'm not sure there's a lot of sense opening, say, mp3 files with kwrite. :)

    Regards,

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Alex DEKKER@21:1/5 to All on Mon Jul 25 17:30:01 2022
    On 23/07/2022 18:22, local10 wrote:

    For some Windows programs, there's a way to tell Windows to make it the default program
    for all supported file types. Does something similar exist for KDE?
    You could try adding "*.*" as a pattern (without quotes) to one of the known file types and see how well it works. Personally I'm not sure there's a lot of sense opening, say, mp3 files with kwrite. :)

    Me neither, but the OP did say "all supported filetypes" not "all
    filetypes".

    alexd

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Alex DEKKER@21:1/5 to Borden on Tue Jul 26 12:00:01 2022
    This is a multi-part message in MIME format.
    On 26/07/2022 00:46, Borden wrote:
    25 Jul 2022, 10:59 bybugs@ale.cx:


    Me neither, but the OP did say "all supported filetypes" not "all filetypes".

    alexd

    Since it's too much to ask software to self-report what files it supports, is there a way to find out, quickly, which file types have KOrganizer as its primary handler and then I can probably script a way to change it to Kate?


    I think you meant to reply to the list, not to me.


    Anyway, there's probably an xdg-* command that does this "properly", but


    grep korganiz |/usr/share/applications/mimeinfo.cache|


    seems to return a plausible-looking list.

    alexd

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
    <div class="moz-cite-prefix">On 26/07/2022 00:46, Borden wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:N7rkDmb--7-2@tutanota.com">
    <pre class="moz-quote-pre" wrap="">25 Jul 2022, 10:59 by <a class="moz-txt-link-abbreviated" href="mailto:bugs@ale.cx">bugs@ale.cx</a>:

    </pre>
    <blockquote type="cite"><br>
    <pre class="moz-quote-pre" wrap="">Me neither, but the OP did say "all supported filetypes" not "all filetypes".

    alexd

    </pre>
    </blockquote>
    <pre class="moz-quote-pre" wrap="">Since it's too much to ask software to self-report what files it supports, is there a way to find out, quickly, which file types have KOrganizer as its primary handler and then I can probably script a way to
    change it to Kate?

    </pre>
    </blockquote>
    <p><br>
    </p>
    <p>I think you meant to reply to the list, not to me.</p>
    <p><br>
    </p>
    <p>Anyway, there's probably an xdg-* command that does this
    "properly", but<br>
    </p>
    <p><br>
    </p>
    <p>grep korganiz  <code>/usr/share/applications/mimeinfo.cache</code></p>
    <p><br>
    </p>
    <p>seems to return a plausible-looking list.</p>
    <p>alexd<br>
    </p>
    </body>
    </html>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Borden@21:1/5 to All on Tue Jul 26 20:10:01 2022
    26 Jul 2022, 05:51 by bugs@ale.cx:

    I think you meant to reply to the list, not to me.


    My apologies. I'm still learning how to Internet.




    Anyway, there's probably an xdg-* command that does this "properly", but


    grep korganiz  > /usr/share/applications/mimeinfo.cache


    seems to return a plausible-looking list.


    Thanks. Time to break out Python. Any edits I make shoud go into ~/.config/mimeapps.list, correct?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)