summaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
Diffstat (limited to 'patches')
-rw-r--r--patches/01-update-mime-types.patch16
-rw-r--r--patches/02-disable_updates.patch15
-rw-r--r--patches/04_update_desktop_launcher.patch26
-rw-r--r--patches/05-add-debian-hardening-flags.patch18
-rw-r--r--patches/06-tryfixplaylist.patch23
-rw-r--r--patches/series5
6 files changed, 103 insertions, 0 deletions
diff --git a/patches/01-update-mime-types.patch b/patches/01-update-mime-types.patch
new file mode 100644
index 0000000..aa33c92
--- /dev/null
+++ b/patches/01-update-mime-types.patch
@@ -0,0 +1,16 @@
+Description: Update mime types
+Author: Mateusz Łukasik <mati75@linuxmint.pl>
+Bug-Debian: https://bugs.debian.org/842899
+Last-Update: 2018-01-10
+
+--- a/smplayer.desktop
++++ b/smplayer.desktop
+@@ -4,7 +4,7 @@ Comment=A great MPlayer front-end
+ Exec=smplayer %U
+ GenericName=Media Player
+ Icon=smplayer
+-MimeType=audio/ac3;audio/mp4;audio/mpeg;audio/vnd.rn-realaudio;audio/vorbis;audio/x-adpcm;audio/x-matroska;audio/x-mp2;audio/x-mp3;audio/x-ms-wma;audio/x-vorbis;audio/x-wav;audio/mpegurl;audio/x-mpegurl;audio/x-pn-realaudio;audio/x-scpls;audio/aac;audio/flac;audio/ogg;video/avi;video/mp4;video/flv;video/mpeg;video/quicktime;video/vnd.rn-realvideo;video/x-matroska;video/x-ms-asf;video/x-msvideo;video/x-ms-wmv;video/x-ogm+ogg;video/x-theora;video/webm;
++MimeType=application/ogg;application/x-ogg;audio/ogg;audio/x-vorbis;audio/x-vorbis+ogg;video/ogg;video/x-ogm+ogg;video/x-theora+ogg;video/x-theora;audio/x-speex;audio/opus;application/x-flac;audio/flac;audio/x-flac;audio/x-ms-asf;audio/x-ms-asx;audio/x-ms-wax;audio/x-ms-wma;video/x-ms-asf;video/x-ms-asf-plugin;video/x-ms-asx;video/x-ms-wm;video/x-ms-wmv;video/x-ms-wmx;video/x-ms-wvx;video/x-msvideo;audio/x-pn-windows-acm;video/divx;video/msvideo;video/vnd.divx;video/x-avi;application/vnd.rn-realmedia;application/vnd.rn-realmedia-vbr;audio/vnd.rn-realaudio;audio/x-pn-realaudio;audio/x-pn-realaudio-plugin;audio/x-real-audio;audio/x-realaudio;video/vnd.rn-realvideo;audio/mpeg;audio/mpg;audio/mp1;audio/mp2;audio/mp3;audio/x-mp1;audio/x-mp2;audio/x-mp3;audio/x-mpeg;audio/x-mpg;video/mp2t;video/mpeg;video/mpeg-system;video/x-mpeg;video/x-mpeg2;video/x-mpeg-system;application/mpeg4-iod;application/mpeg4-muxcodetable;application/x-extension-m4a;application/x-extension-mp4;audio/aac;audio/m4a;audio/mp4;audio/x-m4a;audio/x-aac;video/mp4;video/mp4v-es;video/x-m4v;application/x-quicktime-media-link;application/x-quicktimeplayer;video/quicktime;application/x-matroska;audio/x-matroska;video/x-matroska;video/webm;audio/webm;audio/3gpp;audio/3gpp2;audio/AMR;audio/AMR-WB;audio/amr;audio/amr-wb;video/3gp;video/3gpp;video/3gpp2;x-scheme-handler/mms;x-scheme-handler/mmsh;x-scheme-handler/rtsp;x-scheme-handler/rtp;x-scheme-handler/rtmp;x-scheme-handler/icy;x-scheme-handler/icyx;x-content/video-vcd;x-content/video-svcd;x-content/video-dvd;x-content/audio-cdda;x-content/audio-player;application/ram;application/xspf+xml;audio/mpegurl;audio/x-mpegurl;audio/scpls;audio/x-scpls;text/google-video-pointer;text/x-google-video-pointer;video/vnd.mpegurl;application/vnd.apple.mpegurl;application/vnd.ms-asf;application/vnd.ms-wpl;application/sdp;audio/dv;video/dv;audio/x-aiff;audio/x-pn-aiff;video/x-anim;video/x-nsv;video/fli;video/flv;video/x-flc;video/x-fli;video/x-flv;audio/wav;audio/x-pn-au;audio/x-pn-wav;audio/x-wav;audio/ac3;audio/eac3;audio/vnd.dts;audio/vnd.dts.hd;audio/vnd.dolby.heaac.1;audio/vnd.dolby.heaac.2;audio/vnd.dolby.mlp;audio/basic;audio/midi;audio/x-ape;audio/x-gsm;audio/x-musepack;audio/x-tta;audio/x-wavpack;audio/x-shorten;application/x-shockwave-flash;application/x-flash-video;misc/ultravox;image/vnd.rn-realpix;audio/x-it;audio/x-mod;audio/x-s3m;audio/x-xm;application/mxf;
+ Name=SMPlayer
+ Type=Application
+ X-KDE-StartupNotify=false
diff --git a/patches/02-disable_updates.patch b/patches/02-disable_updates.patch
new file mode 100644
index 0000000..b202251
--- /dev/null
+++ b/patches/02-disable_updates.patch
@@ -0,0 +1,15 @@
+Description: Disable updates checking mechanism.
+Author: Alessio Treglia <alessio@debian.org>
+Forwarded: not-needed
+
+--- a/src/smplayer.pro
++++ b/src/smplayer.pro
+@@ -29,7 +29,7 @@ DEFINES += MINIGUI
+ DEFINES += MPCGUI
+ DEFINES += SKINS
+ DEFINES += MPRIS2
+-DEFINES += UPDATE_CHECKER
++#DEFINES += UPDATE_CHECKER
+ #DEFINES += CHECK_UPGRADED
+ DEFINES += AUTO_SHUTDOWN_PC
+ #DEFINES += CAPTURE_STREAM
diff --git a/patches/04_update_desktop_launcher.patch b/patches/04_update_desktop_launcher.patch
new file mode 100644
index 0000000..5987a90
--- /dev/null
+++ b/patches/04_update_desktop_launcher.patch
@@ -0,0 +1,26 @@
+Description: Add Unity Launcher Quicklist and keywords to desktop file
+Author: Mateusz Łukasik <mati75@linuxmint.pl>
+Bug-Ubuntu: https://bugs.launchpad.net/bugs/938015
+
+--- b/smplayer.desktop
++++ b/smplayer.desktop
+@@ -8,6 +8,19 @@ MimeType=audio/ac3;audio/mp4;audio/mpeg;
+ Name=SMPlayer
+ Type=Application
+ X-KDE-StartupNotify=false
++Keywords=movie;player;media;kde;qt;
++
++X-Ayatana-Desktop-Shortcuts=Screen;Window
++
++[Mini Shortcut Group]
++Name=Open with mini GUI
++Exec=smplayer -minigui
++TargetEnvironment=Unity
++
++[mpc Shortcut Group]
++Name=Open with mpc GUI
++Exec=smplayer -mpcgui
++TargetEnvironment=Unity
+
+ # Translations
+ Comment[ar]=واجهة-طرفية ممتازة للمشغل MPlayer
diff --git a/patches/05-add-debian-hardening-flags.patch b/patches/05-add-debian-hardening-flags.patch
new file mode 100644
index 0000000..62504ad
--- /dev/null
+++ b/patches/05-add-debian-hardening-flags.patch
@@ -0,0 +1,18 @@
+Description: Add Debian hardening flags to qmake.
+Author: Mateusz Łukasik <mati75@linuxmint.pl>
+
+
+--- a/src/smplayer.pro
++++ b/src/smplayer.pro
+@@ -5,6 +5,11 @@ CONFIG += qt warn_on
+ CONFIG += release
+ #CONFIG += debug
+
++QMAKE_CPPFLAGS *= $(shell dpkg-buildflags --get CPPFLAGS)
++QMAKE_CFLAGS *= $(shell dpkg-buildflags --get CFLAGS)
++QMAKE_CXXFLAGS *= $(shell dpkg-buildflags --get CXXFLAGS)
++QMAKE_LFLAGS *= $(shell dpkg-buildflags --get LDFLAGS)
++
+ QT += network xml
+
+ RESOURCES = icons.qrc H2O.qrc
diff --git a/patches/06-tryfixplaylist.patch b/patches/06-tryfixplaylist.patch
new file mode 100644
index 0000000..eb70562
--- /dev/null
+++ b/patches/06-tryfixplaylist.patch
@@ -0,0 +1,23 @@
+Description: try to fix playlist hide wuth a hack that always show the playlist if are activated
+Author: PICCORO Lenz McKAY <mckaygerhard@gmail.com>
+Bug-Debian: http://bugs.debian.org/799385
+Bug-Debian: http://bugs.debian.org/799984
+
+Origin: https://sourceforge.net/p/smplayer/patches/62/
+Bug: https://sourceforge.net/p/smplayer/bugs/482/
+Forwarded: not-needed
+
+--- a/src/baseguiplus.cpp
++++ b/src/baseguiplus.cpp
+@@ -427,10 +427,10 @@ void BaseGuiPlus::aboutToExitFullscreen(
+ #endif
+ );
+
++ playlistdock->setFloating( fullscreen_playlist_was_floating );
+ if (fullscreen_playlist_was_visible) {
+ playlistdock->show();
+ }
+- playlistdock->setFloating( fullscreen_playlist_was_floating );
+ ignore_playlist_events = false;
+ #endif
+ }
diff --git a/patches/series b/patches/series
new file mode 100644
index 0000000..622dd1e
--- /dev/null
+++ b/patches/series
@@ -0,0 +1,5 @@
+02-disable_updates.patch
+04_update_desktop_launcher.patch
+05-add-debian-hardening-flags.patch
+06-tryfixplaylist.patch
+01-update-mime-types.patch