From Mageia wiki
Jump to: navigation, search

Your friendly neighborhood doctor :)

  • packaging team member
  • wiki representative for packaging team
  • doc team member
  • forums team member, deputy for maat and hence council member
  • forum supporter for english and german forum and irc channels
  • former mandrivauser.de member


Maintaining and updating hplip

Relevant links

Note: The Debian patch tracker has been down since May 2014. For more details see https://lists.debian.org/debian-devel/2014/05/msg00889.html It's still possible to acquire their patches via their VCS systems, check e.g. https://wiki.mageia.org/en/Packagers_linkpage#Debian

Recommended procedure to update hplip

  • start by creating a placeholder text file, mention every change you did,

especially which patches were removed (use short name of patches, but NOT only the patch numbers, be precise)
as an example use some of the previous commit messages: http://svnweb.mageia.org/packages?view=revision&revision=137692
This will then be used as your commit message

  • mention security fixes if you see them in upstream changelog or at Fedora/Debian
  • mention major upstream fixes, or support for new models, but no need to mention every small upstream change
  • checkout latest cauldron hplip
 mgarepo co hplip
 cd hplip/SPECS
  • install buildrequires if necessary
 urpmi --buildrequires  --auto hplip.spec
  • update version to next minor upstream version, reset release to 1
 use your favorite editor
  • download new tarball
 mgarepo sync -d
  • try a build to see if all patches still apply cleanly (step can be skipped)
 bm -la hplip.spec
  • check back with Fedora to see which patches have been removed, updated or added for this minor version, up to but excluding the next minor update at Fedora
 remove / add / update 
  • try a build to see if all patches still apply cleanly, rediff if necessary (best use patcher, check How_to_create_a_patch )
 bm -la hplip.spec
  • check back with Debian to see which patches have been removed, updated or added for this minor version, up to but excluding the next minor update at Debian
 remove / add / update
  • try a build to see if all patches still apply cleanly, rediff if necessary (best use patcher, check How_to_create_a_patch )
 bm -la hplip.spec
  • look for Mageia bugs to fix, if not already resolved by version updates/Fedora/Debian patches:

https://bugs.mageia.org/buglist.cgi?quicksearch=hplip

  • build the package, fix any build problems if encountered, install it to see if it installs cleanly
  • send to mentor for review (or commit directly if you're a regular packager)


Default applications handling in Firefox & Thunderbird

Related links & bugs

  1. Thunderbird

Test case & results

  1. install thunderbird in a freshly created user profile (or on a fresh installation)
  2. open both Firefox and Thunderbird go to Preferences -> Applications (for Thunderbird Preferences -> Attachments)
    1. look for some popular file types (PDF, JPG, PNG, mailto: ) if they exist and what application is shown as default
    2. is this what you would expect, are your default applications configured, and is this usable at all
    3. take note how many filetypes are offered altogether

Some arbitrary links to filetypes for testing

--doktor5000 13:20, 17 April 2014 (UTC) Mageia 4 i586 KDE - fresh installation

  1. firefox shows 31 filetypes altogether
    1. PDF opens by default in Firefox internal viewer, when clicking "open with other application" it offers Okular as default - OK
    2. list of filetypes below:


 asf             WMP plugin 10 comp.
 avi             WMP plugin 10 comp.
 irc             ask every time
 ircs            ask every time
 mailto          use Thunderbird
 midi            vlc plugin
 mp3             vlc plugin
 ogg             quicktime plugin
 podcast         preview in firefox
 pdf             preview in firefox
 quicktime       quicktime plugin
 swf             shockwave flash
 video-podcast   preview in firefox
 wav audio       vlc plugin
 wav file        vlc plugin
 webcal          always ask
 web-feed        preview in firefox
 wma             WMP plugin 10 comp.     
 wmv             WMP plugin 10 comp.
 wm              WMP plugin 10 comp.
 wvx             WMP plugin 10 comp.


  1. thunderbird does not show any filetypes at all

Default applications (e.g. default browser) systemwide / per-desktop

Related links & bugs

Test case & results

echo $BROWSER
cat ~/.local/share/applications/mimeapps.list
xdg-settings get default-web-browser
xdg-settings get default-url-scheme-handler http
xdg-settings get default-url-scheme-handler https
xdg-mime query default x-scheme-handler/http
xdg-mime query default x-scheme-handler/https
xdg-mime query default text/html
xdg-open "http://forums.mageia.org"
xdg-open "https://forums.mageia.org"
  1. expected results on fresh installation:

--doktor5000 13:20, 17 April 2014 (UTC) Mageia 4 i586 KDE - fresh installation

 [doktor5000@localhost ~]$ export LC_ALL=C
 [doktor5000@localhost ~]$  echo $BROWSER
 /usr/bin/www-browser
 [doktor5000@localhost ~]$  cat ~/.local/share/applications/mimeapps.list
 cat: /home/doktor5000/.local/share/applications/mimeapps.list: No such file or directory
 [doktor5000@localhost ~]$  xdg-settings get default-web-browser
 firefox
 [doktor5000@localhost ~]$  xdg-settings get default-url-scheme-handler http
 [doktor5000@localhost ~]$  xdg-settings get default-url-scheme-handler https
 [doktor5000@localhost ~]$  xdg-mime query default x-scheme-handler/http
 [doktor5000@localhost ~]$  xdg-mime query default x-scheme-handler/https
 [doktor5000@localhost ~]$  xdg-mime query default text/html
 firefox.desktop
 [doktor5000@localhost ~]$  xdg-open "http://forums.mageia.org"
 unnamed app(22336) ClientApp::doIt: Creating ClientApp
 kioclient(22336) ClientApp::kde_open: KUrl("http://forums.mageia.org")
 kioclient(22336)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from "/var/tmp/kdecache-doktor5000/ksycoca4"
 opens in firefox
 [doktor5000@localhost ~]$  xdg-open "https://forums.mageia.org"
 unnamed app(22356) ClientApp::doIt: Creating ClientApp
 kioclient(22356) ClientApp::kde_open: KUrl("https://forums.mageia.org")
 kioclient(22356)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from "/var/tmp/kdecache-doktor5000/ksycoca4"
 opens in firefox

How to set the default browser / url-scheme handler

For this example Google Chrome shall be set as default browser. Adjust the environment variable to the .desktop file of the browser that you want to use. For each of the commands no output and no error message is expected. For completeness sake, the last command also sets the default browser to open local .html files via the browser, which may be unwanted (e.g. if you're a web developer and want to open them via text editor or whatever).

 browser="google-chrome.desktop"
 xdg-settings set default-web-browser $browser
 xdg-settings set default-url-scheme-handler http $browser
 xdg-settings set default-url-scheme-handler https $browser
 xdg-mime default $browser x-scheme-handler/http
 xdg-mime default $browser x-scheme-handler/https
 xdg-mime default $browser x-scheme-handler/about
 for i in application/x-extension-html application/x-extension-shtml application/x-extension-xhtml application/xhtml+xml text/html; do
   xdg-mime default $browser $i
 done
# gconftool-2 --set /desktop/gnome/url-handlers/http/command --type string "xdg-open \"%s"\"

to check default browser

 xdg-settings get default-web-browser
 xdg-settings get default-url-scheme-handler http
 xdg-settings get default-url-scheme-handler https
 xdg-mime query default x-scheme-handler/http
 xdg-mime query default x-scheme-handler/https
 for i in application/x-extension-html application/x-extension-shtml application/x-extension-xhtml application/xhtml+xml text/html; do
   xdg-mime query default $i
 done
  1. for KDE to double-check
 kreadconfig --group General --key BrowserApplication
  1. for GNOME to double-check
 gconftool-2 --get /desktop/gnome/url-handlers/http/command
 gconftool-2 --get /desktop/gnome/url-handlers/https/command
 gconftool-2 --get /desktop/gnome/url-handlers/ftp/command

Replacing Razor-qt with LXQt

    • this is currently a placeholder to document the migration from razor-qt to LXQt **

The developers of razor-qt and LXDE merged together and currently work on LXQt. It is the successor of razor-qt, looks the same but adds some of the LXDE applications to it. Earlier it was referenced as LXDE-Qt.


For more information, see the following links

New wiki:


Migration path

razor-qt has been obsoleted/replaced by LXQt, for users upgrading from Mageia 4 to Mageia 5 the process should be smooth.

LXQt build order and git handling

  • build order

http://wiki.lxde.org/en/Build_LXDE-Qt_From_Source

  • git handling

despite the instructions there and on https://github.com/lxde/lxde-qt/ the instructions will not work for "anonymous" checkout, as all the URLs of the submodules point to git@git.lxde.org:/lxde which only works if you have an account there - or so it seems

Use the following commands:

 git clone git@github.com:lxde/lxde-qt.git; cd lxde-qt
 sed -i 's|git@git.lxde.org:/lxde|git://git.lxde.org/git/lxde%7Cg' .gitmodules #fixes remote URL for anonymous checkout
 git submodule init && git submodule update --remote --rebase

current state / packaging TODO for LXQT 0.9

For the LXQt 0.9 release announcement see http://sourceforge.net/p/lxde/mailman/message/33373317/

Tracked also via https://bugs.mageia.org/show_bug.cgi?id=13321 and forum thread https://forums.mageia.org/en/viewtopic.php?f=15&t=7604

  • OK libqtxdg
  • OK liblxqt
  • OK liblxqt-mount
  • OK lxqt-globalkeys
  • OK lxqt-notificationd
  • OK libsysstat
  • OK lxqt-panel
  • OK pcmanfm-qt
  • OK lxqt-session
  • OK lxqt-runner
  • OK lxqt-qtplugin
  • lxqt-appswitcher deprecated, obsoleted in task-lxqt-minimal
  • OK lxqt-policykit
  • OK lxqt-openssh-askpass
  • OK lxqt-powermanagement
  • OK lximage-qt
  • OK lxqt-config
    • lxinput-qt merged with lxqt-config
    • lxqt-config-randr deprecated, replaced by lxqt-config-monitor
  • OK obconf-qt no new released version
    • compton-conf dropped, as we do not have compton
  • OK lxqt-about
  • lxqt-lightdm-greeter deprecated, has been obsoleted
  • OK lxqt-common
  • OK lxmenu-data
  • OK task-lxqt
  • MISSING lxqt-admin
    • requires system-tools-backends -> liboobs which is totally outdated


TODO

TEST

DONE

  • lxqt-panel task manager missing Requires on kwindowsystem ?
  • qterminal qt5 build
  • add errata entry for removal of lxmenu-data for cauldron users
    • rpm -e --nodeps lxmenu-data; urpmi lxmenu-data
  • lxqt-about shows ~/.local/sharelxqt instead of ~/.local/share/lxqt in about dialog
  • recheck Category for all packages (Desktop/KDE ???)
    • no other suitable category, Qt packages all have that category
  • send changes to .desktop files upstream
    • better wait for next tarball release as translations have all been invalidated shortly before 0.7 release
    • lxqt-globalkeys greek entries in .desktop file have been sent upstream by dglent
      • no more changes necessary due to patched desktop-file-utils, see below
  • lxqt systemsettings does show only a few items
    • get updated desktop-file-utils submitted to infra_4, so that LXQt categories don't have to be stripped away from .desktop files
      • waiting for freeze push of all lxqt 0.8 packages
  • added upower Require to lxqt-powermanagement, and move away from task-lxqt
  • check why icons for folders on desktop an in pcmanfm-qt are not displayed
    • for first run for new user you need to select an icon theme. menu -> preferences -> appearance -> lcqt icon theme, then icons are shown
  • wallpaper from theme is only displayed when located or symlinked into theme directory
  • add Mageia default wallpaper to custom Mageia theme in lxqt-common, require mageia-theme-Default
  • make custom mga-light theme the default theme
  • single-click on mgaapplet does nothing ... lxqt-policykit fixes that
  • click on MCC in menu does not start MCC ... lxqt-policykit fixes that
  • rebuild all with QT5 - use cmake option -DUSE_QT5=ON
  • add lxqt-config-monitor -> contained in lxqt-config
  • add Recommends on sddm in task-lxqt-minimal
  • recheck license for all packages (GPL -> GPLv2+ / LGPLv2+ )
  • check for a way to only enable power management when battery present, to prevent "... disabled" message by default

LIST OF BUGS / MISC

FUTURE IMPROVEMENTS