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.
-
AuthorPosts
-
May 11, 2021 at 1:19 pm #59232Member
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:
May 11, 2021 at 2:53 pm #59238MemberPPC
::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.
May 11, 2021 at 4:08 pm #59242Anonymous
::But now some tools do not open the files for editing!
For example Control Center -> Desktop -> Edit IceWM SettingsToward 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/menuThe 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]…’ fileMay 11, 2021 at 4:23 pm #59244MemberPPC
::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.
May 11, 2021 at 6:14 pm #59254Memberbanned
::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 🙂
May 11, 2021 at 6:29 pm #59256Anonymous
::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…
-
AuthorPosts
- You must be logged in to reply to this topic.
