Changes

Mint Linux Troubleshooting

2,268 bytes added, 13:10, 19 October 2022
/* File Associations / Open With */
The following lines were added (+) and removed (-):
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,199
edits