Difference between revisions of "PCmanFM-Qt"
Views
Actions
Namespaces
Variants
Tools
imported>Excalibur1234 |
imported>Excalibur1234 (some edits) |
||
Line 4: | Line 4: | ||
<div style="background-color:#ddddff"> | <div style="background-color:#ddddff"> | ||
<b>NOTE:</b> Taken from, and all credit goes to, [http://madebits.com/blog/?x=entry:entry140317-141947;comments:1 MadeBits]. For more detailed examples and explanation see that web page and for a complete explanation of all the parameters see [http://www.nautilus-actions.org/?q=node/377 DES-EMA]. | |||
</div> | |||
Below actions are just examples. You can use them and create your owns based on them. | Below actions are just examples. You can use them and create your owns based on them. | ||
Before creating the actions (which are desktop files), first create its directory/folder by copy-pasting the below command in terminal: | Before creating the actions (which are desktop files), first create its directory/folder by copy-pasting the below command in terminal: | ||
Line 15: | Line 16: | ||
The last two directories in the above line have now been created recursively. You can as well create them one inside the other by file manager. If you prefer this method and can’t see the first hidden directory (<code>.local</code>) in your <code>Home</code> (<code>~/</code>) press <code>Ctrl+h</code> to make it (and all hidden files and directories) appear. | The last two directories in the above line have now been created recursively. You can as well create them one inside the other by file manager. If you prefer this method and can’t see the first hidden directory (<code>.local</code>) in your <code>Home</code> (<code>~/</code>) press <code>Ctrl+h</code> to make it (and all hidden files and directories) appear. | ||
= “Edit as root” custom action = | |||
Create and edit the action file (rootedit.desktop) either by using file manager or by issuing these terminal commands one at a time (replace <code>juffed</code> with your text editor if it’s different): | Create and edit the action file (rootedit.desktop) either by using file manager or by issuing these terminal commands one at a time (replace <code>juffed</code> with your text editor if it’s different): | ||
Line 21: | Line 23: | ||
<pre>touch ~/.local/share/file-manager/actions/rootedit.desktop | <pre>touch ~/.local/share/file-manager/actions/rootedit.desktop | ||
juffed ~/.local/share/file-manager/actions/rootedit.desktop</pre> | juffed ~/.local/share/file-manager/actions/rootedit.desktop</pre> | ||
Paste the below content in <code>rootedit.desktop</code>: | Paste the below content in <code>rootedit.desktop</code>: | ||
Line 30: | Line 33: | ||
[X-Action-Profile profile-zero] | [X-Action-Profile profile-zero] | ||
Exec=gksu juffed %f | Exec='''gksu''' '''juffed''' %f | ||
Name=Default profile</pre> | Name=Default profile</pre> | ||
Replace <code>juffed</code> with your text editor if it’s different and replace <code>gksu</code> with <code>kdesu</code> if you use <code>kdesu</code>. | Replace <code>juffed</code> with your text editor if it’s different and replace <code>gksu</code> with <code>kdesu</code> if you use <code>kdesu</code>. | ||
= “Set as wallpaper” custom action = | |||
Create and edit the action file (wallpaper.desktop) either by using file manager or by issuing these terminal commands one at a time (replace <code>juffed</code> with your text editor if it’s different): | Create and edit the action file (wallpaper.desktop) either by using file manager or by issuing these terminal commands one at a time (replace <code>juffed</code> with your text editor if it’s different): | ||
Line 40: | Line 45: | ||
<pre>touch ~/.local/share/file-manager/actions/wallpaper.desktop | <pre>touch ~/.local/share/file-manager/actions/wallpaper.desktop | ||
juffed ~/.local/share/file-manager/actions/wallpaper.desktop</pre> | juffed ~/.local/share/file-manager/actions/wallpaper.desktop</pre> | ||
Paste the below content in <code>wallpaper.desktop</code>: | Paste the below content in <code>wallpaper.desktop</code>: | ||
Revision as of 23:51, 21 November 2014
NOTE: Taken from, and all credit goes to, MadeBits. For more detailed examples and explanation see that web page and for a complete explanation of all the parameters see DES-EMA.
Below actions are just examples. You can use them and create your owns based on them.
Before creating the actions (which are desktop files), first create its directory/folder by copy-pasting the below command in terminal:
mkdir -p ~/.local/share/file-manager/actions
The last two directories in the above line have now been created recursively. You can as well create them one inside the other by file manager. If you prefer this method and can’t see the first hidden directory (.local
) in your Home
(~/
) press Ctrl+h
to make it (and all hidden files and directories) appear.
“Edit as root” custom action
Create and edit the action file (rootedit.desktop) either by using file manager or by issuing these terminal commands one at a time (replace juffed
with your text editor if it’s different):
touch ~/.local/share/file-manager/actions/rootedit.desktop juffed ~/.local/share/file-manager/actions/rootedit.desktop
Paste the below content in rootedit.desktop
:
[Desktop Entry] Type=Action Name=Edit as Root Icon=dialog-password Profiles=profile-zero; [X-Action-Profile profile-zero] Exec='''gksu''' '''juffed''' %f Name=Default profile
Replace juffed
with your text editor if it’s different and replace gksu
with kdesu
if you use kdesu
.
“Set as wallpaper” custom action
Create and edit the action file (wallpaper.desktop) either by using file manager or by issuing these terminal commands one at a time (replace juffed
with your text editor if it’s different):
touch ~/.local/share/file-manager/actions/wallpaper.desktop juffed ~/.local/share/file-manager/actions/wallpaper.desktop
Paste the below content in wallpaper.desktop
:
[Desktop Entry] Type=Action Name[en]=Set As Wallpaper Icon=user-desktop Profiles=profile-zero; [X-Action-Profile profile-zero] MimeTypes=image/*; Exec=pcmanfm-qt -w %f Name[en]=Default profile SelectionCount==1