Refactor deb desktop integration

This commit is contained in:
Reinhard Pointner 2017-02-16 04:48:57 +08:00
parent 24bf42c32e
commit db35ae54f9
10 changed files with 21 additions and 22 deletions

View File

@ -25,7 +25,10 @@ microsoft.application.publisher: CN=761A0D2B-9B86-4FE4-B664-18E4E0AFC3F1
# Platform-specific Package Information
mac.application.category: public.app-category.utilities
gnome.application.categories: AudioVideo;Video;Utility;FileTools;
deb.application.categories: AudioVideo;Video;Utility;FileTools;
deb.application.mimetype: inode/directory;video/*;audio/*;text/*;application/*;
deb.application.class: net-filebot-Main
deb.control.depends: openjdk-8-jre, openjfx, mediainfo, libchromaprint-tools, nautilus-actions
# Links
link.help.manpage: http://www.filebot.net/cli.html

View File

@ -7,3 +7,4 @@ Description: @{package.synopsis}
Homepage: @{package.homepage}
Section: utils
Priority: extra
Suggests: @{deb.control.depends}

View File

@ -2,13 +2,13 @@
Type=Application
Name=@{application.name}
Comment=@{package.synopsis}
MimeType=inode/directory;video/*;audio/*;text/*;
MimeType=@{deb.application.mimetype}
Exec=filebot %F
Icon=filebot
Categories=@{gnome.application.categories}
Categories=@{deb.application.categories}
Actions=Rename;Subtitles;Checksum;
StartupNotify=true
StartupWMClass=net-filebot-Main
StartupWMClass=@{deb.application.class}
X-Ubuntu-Gettext-Domain=@{package.name}
[Desktop Action Rename]

View File

@ -5,5 +5,5 @@ Profiles=Media;
[X-Action-Profile Media]
Name=Checksum
MimeTypes=inode/directory;video/*;audio/*;text/*;application/*;
MimeTypes=@{deb.application.mimetype}
Exec=filebot --mode SFV %F

View File

@ -5,6 +5,6 @@ Profiles=Media;
[X-Action-Profile Media]
Name=Import to Media Library
MimeTypes=inode/directory;video/*;audio/*;
MimeTypes=@{deb.application.mimetype}
ExecutionMode=DisplayOutput
Exec=filebot -script fn:amc --output "$HOME/Media" --action duplicate -non-strict --log-file "$HOME/Media/amc.log" --def excludeList="$HOME/Media/amc.excludes" unsorted=y music=y artwork=y %F

View File

@ -5,5 +5,5 @@ Profiles=Media;
[X-Action-Profile Media]
Name=Rename
MimeTypes=inode/directory;video/*;audio/*;
MimeTypes=@{deb.application.mimetype}
Exec=filebot --mode Rename %F

View File

@ -5,5 +5,5 @@ Profiles=Media;
[X-Action-Profile Media]
Name=Subtitles
MimeTypes=inode/directory;video/*;
MimeTypes=@{deb.application.mimetype}
Exec=filebot --mode Subtitles %F

View File

@ -1,6 +1,6 @@
[Desktop Entry]
Type=Menu
Name=FileBot
Name=@{application.name}
Tooltip=Common FileBot Actions
Icon=filebot
ItemsList=filebot-rename;filebot-subtitles;filebot-checksum;filebot-import;

View File

@ -1,12 +1,12 @@
[Desktop Entry]
Type=Service
Name=FileBot
Name=@{application.name}
Icon=filebot
ServiceTypes=KonqPopupMenu/Plugin
Actions=Rename;Subtitles;Checksum;Import;
MimeType=inode/directory;video/*;audio/*;text/*;
MimeType=@{deb.application.mimetype}
X-KDE-Priority=TopLevel
X-KDE-Submenu=FileBot
X-KDE-Submenu=@{application.name}
[Desktop Action Rename]
Name=Rename

View File

@ -2,13 +2,13 @@
Type=Application
Name=@{application.name}
Comment=@{package.synopsis}
MimeType=inode/directory;video/*;audio/*;text/*;
MimeType=@{deb.application.mimetype}
Exec=filebot %F
Icon=${SNAP}/meta/gui/icon.svg
Terminal=false
Categories=@{deb.application.categories}
Actions=Rename;Subtitles;Checksum;
StartupNotify=true
Categories=@{gnome.application.categories}
Actions=Rename;Subtitles;SFV;Filter;
StartupWMClass=@{deb.application.class}
X-Ubuntu-Gettext-Domain=@{package.name}
[Desktop Action Rename]
@ -21,12 +21,7 @@ Name=Subtitles
Exec=filebot --mode Subtitles %F
OnlyShowIn=Unity;
[Desktop Action SFV]
[Desktop Action Checksum]
Name=Checksum
Exec=filebot --mode SFV %F
OnlyShowIn=Unity;
[Desktop Action Filter]
Name=Filter
Exec=filebot --mode Filter %F
OnlyShowIn=Unity;