Page 12 of 12 FirstFirst ... 2101112
Results 111 to 114 of 114

Thread: Dolphin adds a txt extension to ini files

  1. #111
    josephkk NNTP User

    Default Re: Dolphin adds a txt extension to ini files

    On Sat, 08 Mar 2014 16:56:01 GMT, finders
    <finders@no-mx.forums.opensuse.org> wrote:

    >
    >consused;2629287 Wrote:
    >> I understand, and my searching is on systems without the issue. It needs
    >> to be someone who has the added .txt behaviour.
    >>
    >> Just a thought about situations that might need to replicate a "Windows"
    >> behaviour, for example do you have Wine installed (I don't)? Maybe it
    >> adds/alters a setting in .kde4 or in /usr/share/kde4/, or ...

    >
    >Now that you've mentioned it, I do have wine installed, and it does seem
    >to recreate ~/.local/share/mime/ post-upgrade.
    >For example, there's
    >~/.local/share/mime/application/x-wine-extension-ini.xml which is kinda
    >suspicious.
    >Maybe wine somehow sets this up and dolphin just reads the
    >configuration.
    >Still doesn't explain why creating new.exe in dolphin creates
    >new.exe.txt,since I cannot find this extension in ~/.local


    I may have a useful train of thought.
    Most applications only read their own initialization files. whether *.rc
    or *.ini; however some of the information that gets read becomes part of
    the environment and may remain after the application closes. If you have
    long uptime machines like i do (Godel 39 Days+; Jacobi 133 days+) an
    absolutely amazing amount of cruft may accumulate in the environment.

    Perhaps logout and login may change the behavior? (should clean up most of
    the environment)

    ?-)

  2. #112
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,936

    Default Re: Dolphin adds a txt extension to ini files

    Quote Originally Posted by josephkk View Post
    I may have a useful train of thought.
    Most applications only read their own initialization files. whether *.rc
    or *.ini; however some of the information that gets read becomes part of
    the environment and may remain after the application closes. If you have
    long uptime machines like i do (Godel 39 Days+; Jacobi 133 days+) an
    absolutely amazing amount of cruft may accumulate in the environment.

    Perhaps logout and login may change the behavior? (should clean up most of
    the environment)

    ?-)
    I may interprete you wrongly, but as I read it,, you have a misunderstanding of the "environment". This is the process environment which belongs to every process. A process can add, delete and change parameters in it's environment. This has no influence on other processes. Only offspring process of a process inherit it's environment. Changes in a process' environment never spread "upwards" to it's parent. Thus, when an applicationn (one or more processes) stops, that environment is lost. There is no polution as you seem to think.
    Henk van Velden

  3. #113
    Join Date
    May 2010
    Location
    Central USA
    Posts
    249

    Default Re: Dolphin adds a txt extension to ini files

    Quote Originally Posted by wolfi323 View Post
    This issue is indeed related to wine, or more precise to the .ini mimetype (application/x-wine-extension-ini) it creates when you _run_ it (just installing it is _not_ enough to trigger this).
    Remove the directory ~/.local/share/mime/ (it's only a cache, it will be regenerated automatically if necessary), and the .txt extension should not be added any more (you may have to run "kbuildsycoca4"). At least that worked here.
    I just renamed the application/x-wine-extension-ini file and it did not create the .txt extension. I then ran notepad and then created a .ini file and no .txt extension was added in 12.3. Would the file itself be regenerated or only if the whole directory is missing?

  4. #114

    Default Re: Dolphin adds a txt extension to ini files

    Quote Originally Posted by dt30 View Post
    I just renamed the application/x-wine-extension-ini file and it did not create the .txt extension. I then ran notepad and then created a .ini file and no .txt extension was added in 12.3. Would the file itself be regenerated or only if the whole directory is missing?
    Yes, that's only recreated if there's no ~/.wine/ directory, i.e. on the first wine run.
    But that file only sets notepad as default application for .ini files.
    The filetype itself is added in ~/.local/share/mime/ and in my experience this is recreated on every wine run in my experience.

Page 12 of 12 FirstFirst ... 2101112

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •