-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Installation, uninstallation and re-installation work. Thanks to nautilus -q, postinst and prerm. Setting the icons seems impossible.
- Loading branch information
Showing
18 changed files
with
78 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Package: flash-ffmpeg | ||
Version: 1.0 | ||
Architecture: amd64 | ||
Maintainer: Taher Anjary <tanjary21@ku.edu.tr> | ||
Description: Quick access to customizable FFMPEG functions directly from the right-click context menu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/sh -e | ||
|
||
# get user's home directory | ||
USER_HOME_DIR=$(getent passwd "$SUDO_USER" | cut -d: -f6) | ||
|
||
# build a directory structure for the scripts | ||
mkdir "$USER_HOME_DIR/.local/share/nautilus/scripts/Flash FFMPEG" | ||
|
||
# set icons for the scripts | ||
# gio set "/usr/share/flash_ffmpeg/scripts/convert_mp4_to_gif.sh" metadata::custom-icon "file:///usr/share/icons/flash_ffmpeg/gif.png" | ||
# gio set "/usr/share/flash_ffmpeg/scripts/extract_frames.sh" metadata::custom-icon "file:///usr/share/icons/flash_ffmpeg/image.png" | ||
# gio set "/usr/share/flash_ffmpeg/scripts/frames_to_mp4.sh" metadata::custom-icon "file:///usr/share/icons/flash_ffmpeg/reel.png" | ||
# gio set "/usr/share/flash_ffmpeg/scripts/mp4_downsampler.sh" metadata::custom-icon "file:///usr/share/icons/flash_ffmpeg/video.png" | ||
|
||
|
||
# build symbolic links to the scripts | ||
sudo ln -s "/usr/share/flash_ffmpeg/scripts/convert_mp4_to_gif.sh" "$USER_HOME_DIR/.local/share/nautilus/scripts/Flash FFMPEG/MP4 to GIF" | ||
sudo ln -s "/usr/share/flash_ffmpeg/scripts/extract_frames.sh" "$USER_HOME_DIR/.local/share/nautilus/scripts/Flash FFMPEG/MP4 to Frames" | ||
sudo ln -s "/usr/share/flash_ffmpeg/scripts/frames_to_mp4.sh" "$USER_HOME_DIR/.local/share/nautilus/scripts/Flash FFMPEG/Frames to MP4" | ||
sudo ln -s "/usr/share/flash_ffmpeg/scripts/mp4_downsampler.sh" "$USER_HOME_DIR/.local/share/nautilus/scripts/Flash FFMPEG/Downsample MP4" | ||
|
||
# give the symbolic links the right permissions | ||
# TODO | ||
|
||
# give the symbolic links some icons | ||
# gvfs-set-attribute -t "$USER_HOME_DIR/.local/share/nautilus/scripts/Flash FFMPEG/MP4 to GIF" metadata::custom-icon "file:///usr/share/icons/flash_ffmpeg/gif.png" | ||
# gvfs-set-attribute -t "$USER_HOME_DIR/.local/share/nautilus/scripts/Flash FFMPEG/MP4 to Frames" metadata::custom-icon "file:///usr/share/icons/flash_ffmpeg/image.png" | ||
# gvfs-set-attribute -t "$USER_HOME_DIR/.local/share/nautilus/scripts/Flash FFMPEG/Frames to MP4" metadata::custom-icon "file:///usr/share/icons/flash_ffmpeg/reel.png" | ||
# gvfs-set-attribute -t "$USER_HOME_DIR/.local/share/nautilus/scripts/Flash FFMPEG/Downsample MP4" metadata::custom-icon "file:///usr/share/icons/flash_ffmpeg/video.png" | ||
|
||
|
||
|
||
|
||
|
||
# It's very immportant to reload nautilus after the installation completes. Use the command: 'nautilus -q' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh -e | ||
|
||
USER_HOME_DIR=$(getent passwd "$SUDO_USER" | cut -d: -f6) | ||
|
||
sudo find "$USER_HOME_DIR/.local/share/nautilus/scripts/Flash FFMPEG" -type l -exec rm {} + | ||
|
||
sudo rm -r "$USER_HOME_DIR/.local/share/nautilus/scripts/Flash FFMPEG" | ||
|
||
# Full uninstall procedures: | ||
# sudo dpkg -r flash-ffmpeg; | ||
# sudo mv /lib/dpkg/info/flash/ffmpeg-tmp.* /var/; | ||
# sudo dpkg --remove --force-remove-reinstreq flash-ffmpeg; | ||
# sudo dpkg --purge flash-ffmpeg | ||
|
||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/home/tanjary21/Desktop/quick_ffmpeg/mp4_downsampler.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/home/tanjary21/Desktop/quick_ffmpeg/frames_to_mp4.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/home/tanjary21/Desktop/quick_ffmpeg/extract_frames.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/home/tanjary21/Desktop/quick_ffmpeg/convert_mp4_to_gif.sh |