wok-current rev 17303

pcmanfm: edit actions.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Oct 31 18:33:48 2014 +0200 (2014-10-31)
parents 8ebc9e1cee08
children 9bedcf1d0076
files pcmanfm/stuff/actions/gvfs-info.desktop pcmanfm/stuff/actions/gvfs-mount-archive.desktop pcmanfm/stuff/actions/root.desktop pcmanfm/stuff/actions/rootedit.desktop pcmanfm/stuff/actions/slideshow.desktop pcmanfm/stuff/actions/wallpaper.desktop
line diff
     1.1 --- a/pcmanfm/stuff/actions/gvfs-info.desktop	Fri Oct 31 09:13:15 2014 +0100
     1.2 +++ b/pcmanfm/stuff/actions/gvfs-info.desktop	Fri Oct 31 18:33:48 2014 +0200
     1.3 @@ -1,6 +1,5 @@
     1.4  [Desktop Entry]
     1.5  Type=Action
     1.6 -TargetLocation=true
     1.7  Icon=help-about
     1.8  Profiles=gvfs-info;
     1.9  Name=GVFS info
    1.10 @@ -8,5 +7,3 @@
    1.11  
    1.12  [X-Action-Profile gvfs-info]
    1.13  Exec=sh -c "gvfs-info %u 2>&1 | sed -e '/: /!s|$|&\\n|g' -e '/: /s|: |\\n|1g' | yad --title='GVFS info' --window-icon='gtk-info' --list --width=600 --height=320 --column='Name' --column='Value' --button='gtk-close'"
    1.14 -
    1.15 -#NoExec=sh -c "gvfs-info %u | yad --center --title='GVFS info' --window-icon='gtk-info' --text-info --width=600 --height=320 --fore=#FFF --back=#000 --fontname=monospace --button='gtk-close'"
     2.1 --- a/pcmanfm/stuff/actions/gvfs-mount-archive.desktop	Fri Oct 31 09:13:15 2014 +0100
     2.2 +++ b/pcmanfm/stuff/actions/gvfs-mount-archive.desktop	Fri Oct 31 18:33:48 2014 +0200
     2.3 @@ -6,6 +6,8 @@
     2.4  Profiles=on_archive;
     2.5  
     2.6  [X-Action-Profile on_archive]
     2.7 +# if gvfs-archive installed
     2.8  TryExec=/usr/lib/gvfs/gvfsd-archive
     2.9 +# for specified types of archive
    2.10 +MimeTypes=application/zip;application/gzip;application/x-cd-image;application/x-compressed-tar;application/x-bzip-compressed-tar;application/vnd.android.package-archive;application/x-xpinstall;application/x-raw-disk-image;application/x-rar;application/x-cpio;application/x-7z-compressed;application/x-tazpkg;application/x-ms-dos-executable;
    2.11  Exec=gvfs-mount-archive.sh '%u'
    2.12 -MimeTypes=application/zip;application/gzip;application/x-cd-image;application/x-compressed-tar;application/x-bzip-compressed-tar;application/vnd.android.package-archive;application/x-xpinstall;application/x-raw-disk-image;application/x-rar;application/x-cpio;application/x-7z-compressed;application/x-tazpkg;application/x-ms-dos-executable;
     3.1 --- a/pcmanfm/stuff/actions/root.desktop	Fri Oct 31 09:13:15 2014 +0100
     3.2 +++ b/pcmanfm/stuff/actions/root.desktop	Fri Oct 31 18:33:48 2014 +0200
     3.3 @@ -6,6 +6,8 @@
     3.4  Profiles=root_on_folder;
     3.5  
     3.6  [X-Action-Profile root_on_folder]
     3.7 +# don't show for root
     3.8  ShowIfTrue=test $(whoami) != root
     3.9 +# for folders only
    3.10 +MimeTypes=inode/directory;
    3.11  Exec=tazbox su "pcmanfm %u"
    3.12 -MimeTypes=inode/directory;
     4.1 --- a/pcmanfm/stuff/actions/rootedit.desktop	Fri Oct 31 09:13:15 2014 +0100
     4.2 +++ b/pcmanfm/stuff/actions/rootedit.desktop	Fri Oct 31 18:33:48 2014 +0200
     4.3 @@ -6,5 +6,8 @@
     4.4  Profiles=file_root_edit;
     4.5  
     4.6  [X-Action-Profile file_root_edit]
     4.7 -Exec=subox "editor %f"
     4.8 +# don't show for root
     4.9 +ShowIfTrue=test $(whoami) != root
    4.10 +# for any type of text
    4.11  MimeTypes=text/*;
    4.12 +Exec=tazbox su "editor %f"
     5.1 --- a/pcmanfm/stuff/actions/slideshow.desktop	Fri Oct 31 09:13:15 2014 +0100
     5.2 +++ b/pcmanfm/stuff/actions/slideshow.desktop	Fri Oct 31 18:33:48 2014 +0200
     5.3 @@ -6,26 +6,38 @@
     5.4  Profiles=viewnior_on_folder;viewnior_on_images;gpicview_on_folder;gpicview_on_images;
     5.5  
     5.6  [X-Action-Profile viewnior_on_folder]
     5.7 +# if viewnior installed
     5.8  TryExec=viewnior
     5.9 +# for folders only
    5.10 +MimeTypes=inode/directory;
    5.11 +# if folder contains *.png, *.jpg, *.jpeg, *.gif or *.svg
    5.12  ShowIfTrue=test -n "$(find %f -maxdepth 1 -iname '*.png' -o -iname '*.jpg' -o -iname '*.jpeg' -iname '*.gif' -o -iname '*.svg')"
    5.13  Exec=viewnior --fullscreen --slideshow %f
    5.14 -MimeTypes=inode/directory;
    5.15  
    5.16  [X-Action-Profile viewnior_on_images]
    5.17 +# if viewnior installed
    5.18  TryExec=viewnior
    5.19 +# for any type of images
    5.20 +MimeTypes=image/*;
    5.21 +# if few images selected
    5.22 +SelectionCount=>1
    5.23  Exec=viewnior --fullscreen --slideshow %F
    5.24 -MimeTypes=image/*;
    5.25 -SelectionCount=>1
    5.26  
    5.27  [X-Action-Profile gpicview_on_folder]
    5.28 +# if gpicview installed
    5.29  TryExec=gpicview
    5.30 +# for folders only
    5.31 +MimeTypes=inode/directory;
    5.32 +# if folder contains *.png, *.jpg, *.jpeg, *.gif or *.svg
    5.33  ShowIfTrue=test -n "$(find %f -maxdepth 1 -iname '*.png' -o -iname '*.jpg' -o -iname '*.jpeg' -iname '*.gif' -o -iname '*.svg')"
    5.34  Exec=gpicview --slideshow %f
    5.35 -MimeTypes=inode/directory;
    5.36  
    5.37  [X-Action-Profile gpicview_on_images]
    5.38 +# if gpicview installed
    5.39  TryExec=gpicview
    5.40 +# for any type of images
    5.41 +MimeTypes=image/*;
    5.42 +# if few images selected
    5.43 +SelectionCount=>1
    5.44  #Bug: gpicview shows other images after selected
    5.45  Exec=gpicview --slideshow %F
    5.46 -MimeTypes=image/*;
    5.47 -SelectionCount=>1
     6.1 --- a/pcmanfm/stuff/actions/wallpaper.desktop	Fri Oct 31 09:13:15 2014 +0100
     6.2 +++ b/pcmanfm/stuff/actions/wallpaper.desktop	Fri Oct 31 18:33:48 2014 +0200
     6.3 @@ -6,6 +6,9 @@
     6.4  Profiles=image_wallpaper;
     6.5  
     6.6  [X-Action-Profile image_wallpaper]
     6.7 +# for any images
     6.8  MimeTypes=image/*;
     6.9 -Exec=pcmanfm -w %f
    6.10 +# for one (selected) image
    6.11  SelectionCount==1
    6.12 +# best mode is "crop" - keep aspect ratio when maximized
    6.13 +Exec=pcmanfm -w %f --wallpaper-mode=crop