Changes

Mint Linux Troubleshooting

3,664 bytes added, 13:10, 19 October 2022
/* File Associations / Open With */
The following lines were added (+) and removed (-):
=== The X Windows of Linux Mint from a Top Down Perspective ===*X.org server - Prior to installing a desktop environment, a functional X server installation is required.  *Cinnamon window manager - Known as cinnamon-desktop-environment, a [[Xorg Desktop Environment]] is a bundle of programs, which share a common graphical user interface (GUI). Most desktop environments include a set of integrated applications and utilities*LightDM display manager - Also known as a “login manager”, a display manager is responsible for starting the display server and loading the desktop. This happens right after your correctly enter your username and password.  Mint uses the LightDM login manager.*Slick-Greeter display manager front-end - Mint does not use the Unity Greeter as the front-end for LightDM.  The Slick-Greeter is a fork of Unity Greeter and has been used since Mint 18.2.  Since it no longer uses the MDM greeter, avoid following any guides that reference MDM.=== Display Manager Resolution Settings ===When you run the display manager in Mint, the settings (screen resolution preference) stored in the following location:* ~/.config/monitors.xmlYou should keep a backup of that file handy in the event you get a bad display resolution that prevents Cinnamon from loading correctly or you bump one of the many bugs that prevent you from changing your display preferences back.Linux Mint uses xrandr to change the display settings dynamically rather than referring to xorg.conf, so the xorg.conf is pretty much ignored for this purpose.  Display manger writes to monitors.xml the resolution and monitor properties.  Starting Xorg, xrandr is invoked.  How this currently works, by using xrandr instead of traditional means, and how xorg.conf is seemingly useless is not well documented.  Xrandr is used to set the size, orientation and/or reflection of the outputs for a screen. It can also set the screen size.  Xrandr does not save changes to the xorg.conf file.  * System -> Preferences -> Display Resolution saves the settings in ~/.config/monitors.xml=== Change File Associations / Open With ===Changing File Association for applications Open With in Nemo PCManFM Thunar etc... Mint Cinnamon. File extension.  shell menu Properties->Open With->Show Other Applications - if you create a file association that is wrong or you need to edit this, older versions of mint lack an interface to accomplish this.  So, you can locate and directly edit the configuration file created by this action.  The file is a .desktop file. cd ~/.local/share/applicationsYou will see a bunch of .desktop files each containing characters including in part the name you selected for the association you created.  These can be directly edited with a text editor like vim.  The filename will start with "userapp" and end with ".desktop"  Try this: ls -l ~/.local/share/applications/userapp*.desktopExample:  I created an association for .xm music files to open in a program called MTRACKER yet forgot to select the option to "open in terminal."  This happened when I did the following:# right clicked on a music file ending in the .xm extension# chose "Open With" and then scrolled to the bottom of the list and chose again "Open With..."# in the "choose application" dialog clicked the tab "Custom Command Line"Doing this creates a .desktop file in ~/.local/share/applications and for my example it was called userapp-mtracker-M50TT1.desktop vi  ~/.local/share/applications/userapp-mtracker-M50TT1.desktopYou can edit or delete the .desktop file.  If you delete it then you can go though the file manager and create it again in the correct way.
Bureaucrat, administrator
16,195
edits