This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Config file for default file associations

Tags: None
(comma "," separated)
User avatar
ychaouche
Registered Member
Posts
33
Karma
0
OS
Notepad is bound to most file types that don't have the proper application installed yet (for example dia), and also to text files. Instead of going through each file type and remove notepad, I would like to use a text editor to search and replace notepad in most occurences in the appropriate config file. Anyone knows where this file could be ? couldn't find relevant results with find :

Code: Select all
ychaouche#kamoulox 14:16:18 ~/.config $ find . -iname "*assoc*"
./teamviewer8/.tweak/no_fileassocs
./teamviewer10/.tweak/no_fileassocs
ychaouche#kamoulox 14:16:22 ~/.config $ find . -iname "*file*"
./gtk-2.0/gtkfilechooser.ini
./teamviewer8/drive_c/Program Files
./teamviewer8/drive_c/Program Files/Common Files
./teamviewer8/drive_c/users/ychaouche/Local Settings/Temporary Internet Files
./teamviewer8/logfiles
./teamviewer8/logfiles/TeamViewer8_Logfile.log
./teamviewer8/.tweak/no_fileassocs
./qupzilla/profiles
./qupzilla/profiles/profiles.ini
./baloofilerc
./FlareGet/Settings/ignoreFileList
./google-chrome/FileTypePolicies
./google-chrome/FileTypePolicies/36/download_file_types.pb
./google-chrome/Default/File System
./google-chrome/Default/Download Service/Files
./teamviewer10/drive_c/Program Files
./teamviewer10/drive_c/Program Files/Common Files
./teamviewer10/drive_c/users/ychaouche/Local Settings/Temporary Internet Files
./teamviewer10/logfiles
./teamviewer10/logfiles/TeamViewer10_Logfile.log
./teamviewer10/.tweak/no_fileassocs
./powermanagementprofilesrc
./libreoffice/4/cache/opencl_profile.xml
./startupconfigfiles
./baloofileinformationrc
ychaouche#kamoulox 14:16:27 ~/.config $


EDIT : I found a file
Code: Select all
:~/.local/share/applications/mimeapps.list
, but there's no occurence of notepad there, so the association must be elsewhere.
User avatar
raphaelra
Registered Member
Posts
209
Karma
0
OS
What when you try "inotifywait -r -m -e modify <folder>" on ~/.config, ~/.local, /usr/share, ... and watch which file is modified when you change the file type association ("kcmshell5 filetypes") ?


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]