{"id":701,"date":"2009-08-13T16:19:14","date_gmt":"2009-08-13T13:19:14","guid":{"rendered":"http:\/\/www.void.gr\/kargig\/blog\/?p=701"},"modified":"2009-08-13T20:58:49","modified_gmt":"2009-08-13T17:58:49","slug":"minor-uniformity-patch-for-smplayer","status":"publish","type":"post","link":"https:\/\/www.void.gr\/kargig\/blog\/2009\/08\/13\/minor-uniformity-patch-for-smplayer\/","title":{"rendered":"minor uniformity patch for smplayer"},"content":{"rendered":"<p>One of the things that good Linux applications should have is uniformity. Just like Mac OS X does. All applications should use the same keybindings to perform the same tasks. For example, on _every_ OS X application, in order to quit it you have to press &#8220;CMD+Q&#8221;, it&#8217;s that simple and everybody follows it. Everybody. On Linux though there are some applications that simply don&#8217;t care about uniformity. One of these applications is <a href=\"http:\/\/smplayer.sourceforge.net\/\">smplayer<\/a>.<\/p>\n<p>While it is almost standard for Linux applications to quit using Ctrl+Q, smplayer simply doesn&#8217;t have this option. It has the option of closing the current video with Ctrl+X but it doesn&#8217;t have the simple option of quitting using a keyboard shortcut.<\/p>\n<p>So, the next (oneliner actually) patch does simply what I described above. It makes smplayer quit using &#8220;Ctrl+Q&#8221;.<\/p>\n<p>The screenshot that shows what the patch does:<br \/>\n<a href=\"http:\/\/www.void.gr\/kargig\/blog\/wp-content\/smplayer.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-704\" title=\"smplayer\" src=\"http:\/\/www.void.gr\/kargig\/blog\/wp-content\/smplayer-300x238.jpg\" alt=\"smplayer\" width=\"300\" height=\"238\" srcset=\"https:\/\/www.void.gr\/kargig\/blog\/wp-content\/smplayer-300x238.jpg 300w, https:\/\/www.void.gr\/kargig\/blog\/wp-content\/smplayer.jpg 580w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.void.gr\/kargig\/blog\/wp-content\/smplayer-0.6.8-quit.patch\">smplayer-0.6.8-quit.patch<\/a>:<br \/>\n<code>--- smplayer-0.6.8\/src\/baseguiplus.cpp  2009-08-13 16:07:04.000000000 +0300<br \/>\n+++ smplayer-0.6.8\/src\/baseguiplus.cpp  2009-08-13 16:08:22.000000000 +0300<br \/>\n@@ -67,8 +67,7 @@<br \/>\ntray-&gt;setToolTip( \"SMPlayer\" );<br \/>\nconnect( tray, SIGNAL(activated(QSystemTrayIcon::ActivationReason)),<br \/>\nthis, SLOT(trayIconActivated(QSystemTrayIcon::ActivationReason)));<br \/>\n-<br \/>\n-       quitAct = new MyAction(this, \"quit\");<br \/>\n+       quitAct = new MyAction(QKeySequence(\"Ctrl+Q\"), this, \"quit\");<br \/>\nconnect( quitAct, SIGNAL(triggered()), this, SLOT(quit()) );<br \/>\nopenMenu-&gt;addAction(quitAct);<\/code><\/p>\n<p>And a patched ebuild for smplayer-0.6.8 to use this minor patch (only one line is added to the ebuild):<br \/>\n<a href=\"http:\/\/www.void.gr\/kargig\/blog\/wp-content\/smplayer-0.6.8-r1.ebuild\">smplayer-0.6.8-r1.ebuild<\/a><\/p>\n<p>P.S. Keybindings in smplayer can be set through Preferences, and someone could actually put Ctrl+Q as the quit shortcut but I think that this should be the default setting like most other applications have it. Uniformity matters.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the things that good Linux applications should have is uniformity. Just like Mac OS X does. All applications should use the same keybindings to perform the same tasks. For example, on _every_ OS X application, in order to quit it you have to press &#8220;CMD+Q&#8221;, it&#8217;s that simple and everybody follows it. Everybody. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false,"footnotes":""},"categories":[12,3],"tags":[37,150,142,601,595,163,602,165,157,164],"class_list":["post-701","post","type-post","status-publish","format-standard","hentry","category-gentoo","category-linux","tag-bug","tag-bugfix","tag-ebuild","tag-gentoo","tag-linux","tag-mac","tag-macosx","tag-media-player","tag-patch","tag-smplayer"],"aioseo_notices":[],"views":11967,"_links":{"self":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/701","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/comments?post=701"}],"version-history":[{"count":12,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/701\/revisions"}],"predecessor-version":[{"id":715,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/701\/revisions\/715"}],"wp:attachment":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/media?parent=701"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/categories?post=701"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/tags?post=701"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}