[solved] Edit file screwed up

Forum Forums New users New Users and General Questions [solved] Edit file screwed up

  • This topic has 5 replies, 3 voices, and was last updated May 11-6:29 pm by Anonymous.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #59232
    Member
    banned

      Hi

      When installing and uninstalling I screwed something up! I have uninstalled various text editors because I always want to work with leafpad.

      But now some tools do not open the files for editing! For example Control Center -> Desktop -> Edit IceWM Settings

      Leafpad is set for Preferred Applications (see PrintScreen in the appendix). What do I have to do for the tools to use leafpad?

      • This topic was modified 1 year, 12 months ago by banned.
      Attachments:
      #59238
      Member
      PPC
        Helpful
        Up
        0
        ::

        You can try fixing plain text file association, using the terminal:

        mimeopen -d something.txt

        (the something.txt does not have to exist, you can type the command as hown above)
        And select the number associated with “leafpad”

        See if that works for you…

        P.

        #59242
        Anonymous
          Helpful
          Up
          0
          ::

          But now some tools do not open the files for editing!
          For example Control Center -> Desktop -> Edit IceWM Settings

          Toward understanding why this “some tools” example cannot use leafpad,
          I would invite you to inspect /usr/local/bin/antixcc.sh @Line 137
          and notice the commandline associated with that item’s button click.

          $EDITOR $HOME/.jwm/preferences $HOME/.jwm/keys $HOME/.jwm/tray $HOME/.jwm/startup $HOME/.jwmrc $HOME/.jwm/menu

          The script is configured to use geany as the $EDITOR for this multi-document edit operation
          because geany is a tabbed editor program, capable of being launched with tabs containing multiple specified documents.

          In your situation, two problems are interfering.
          First, leafpad cannot handle, cannot ingest, a commandline request to open multiple files.
          Second, each of the commandline arguments is not enclosed with quotation marks… so leafpad (if the script were edited, to instead specify leafpad as $EDITOR) would fail to open even the ‘first item’ because it is attempting to load a non-existent ‘/home/yourhome/.jwm/preferences[space]/home/yourhome/.jwm/keys[space]…’ file

          #59244
          Member
          PPC
            Helpful
            Up
            0
            ::

            I have uninstalled various text editors

            Hum… I didn’t think that JSM meant he did uninstall geany… just some text editors he installed… Nice catch, Skidoo…
            I also learned geany is hard coded to the edit config files script… Handy to know, tanks, Skidoo.

            The lesson here, folks? Don’t uninstall the tools that come with antiX out of the box– they take so little space (hum…, I know, I know skidoo- Coff… Coff “Bloat”)- install what you want but don’t remove any default application unless you know exactly what you are doing!

            P.

            #59254
            Member
            banned
              Helpful
              Up
              0
              ::

              Believe it or not, I uninstalled geany 🙂

              Now it is reinstalled and the files open again. Something like Notepadqq, isn’t it?

              I’ll see what else I uninstalled too much … someday 🙂

              #59256
              Anonymous
                Helpful
                Up
                0
                ::

                Something like Notepadqq, isn’t it?

                .

                https://packages.debian.org/sid/notepadqq

                mmmmm, like, but without dependencies on qtwebengine and libjs-requirejs and libjs-modernizr and libjs-jquery and…

              Viewing 6 posts - 1 through 6 (of 6 total)
              • You must be logged in to reply to this topic.