Re: VLC-Ne radi podesavanje titlova
Postano: 29 tra 2011, 10:22
pokušao sam ovo što si naveo...ali uopce nemogu desnim klikom otvoriti properties...desni klik mi automatski otvara folder u vlc-u.....i to svaki folder iz /home-a..
Regionalni Linux forum
https://www.linuxzasve.com/forum/
The system-wide file associations are stored in /usr/share/applications/defaults.list
The file associations created by each user are stored in ~/.local/share/applications/mimeapps.list
Each association is stored in a .desktop file. For instance, if I create an association for .info files, mimeapps.list will add a line like:
application/x-extension-info=userapp-gnome-terminal-DR3APV.desktop;
(It reads "userapp-gnome-terminal…" because I used a command line that begins with "gnome-terminal"; see below)
The "Custom command" you enter during association creation has an " %f" argument added automatically to it, representing the file being opened. Things get tricky if you want the "%f" elsewhere than at the end. For instance, if I enter the following custom command for .info files:
gnome-terminal –command="info %f"
The .desktop will store this line:
Exec=gnome-terminal –command="info %f" %f
The additional %f is ignored by gnome-terminal, but this may not be the case for other applications you may use in the custom command line. Your best bet may very well be to edit the .desktop Exec line after creating the association.
You can use the occasion to change the name that appears in the contextual menu. In our example, the menu will read "Open with gnome-terminal". To change this, edit the Name line in the .desktop file. Thus:
Name=info
Will make the menu read "Open with info". This Name is also the one used in the list of applications shown by the "Open with…" dialog.
Kod: Označi sve
cat /etc/gnome/defaults.list