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
Contents
Maintaining and updating hplip
Relevant links
- hplip upstream project/download page: http://hplipopensource.com/
- hplip upstream changelog / release notes: http://hplipopensource.com/hplip-web/release_notes.html
- hplip upstream launchpad page (bugtracker, support): https://launchpad.net/hplip
- current hplip at Mageia SVN: http://svnweb.mageia.org/packages/cauldron/hplip/current/SPECS/hplip.spec?view=markup
- current hplip at Fedora GIT: http://pkgs.fedoraproject.org/cgit/hplip.git/log/
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
- current hplip at Debian patch tracker: http://patch-tracker.debian.org/package/hplip
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
- Thunderbird
- https://bugzilla.mozilla.org/show_bug.cgi?id=727422
- https://bugzilla.mozilla.org/show_bug.cgi?id=713802
- https://bugzilla.mozilla.org/show_bug.cgi?id=296443
- http://kb.mozillazine.org/Actions_for_attachment_file_types
- https://bugs.mageia.org/show_bug.cgi?id=501
- https://bugs.mageia.org/show_bug.cgi?id=2027
- https://bugs.mageia.org/show_bug.cgi?id=4461
- https://bugzilla.gnome.org/show_bug.cgi?id=669936
Test case & results
- install thunderbird in a freshly created user profile (or on a fresh installation)
- open both Firefox and Thunderbird go to Preferences -> Applications (for Thunderbird Preferences -> Attachments)
- look for some popular file types (PDF, JPG, PNG, mailto: ) if they exist and what application is shown as default
- is this what you would expect, are your default applications configured, and is this usable at all
- take note how many filetypes are offered altogether
Some arbitrary links to filetypes for testing
- http://www.linuxvoice.com/wp-content/uploads/2014/03/mageia.pdf
- http://docteam.mageia.nl/PDF/MCC/MCC-EN-PDF.pdf
--doktor5000 13:20, 17 April 2014 (UTC) Mageia 4 i586 KDE - fresh installation
- firefox shows 31 filetypes altogether
- PDF opens by default in Firefox internal viewer, when clicking "open with other application" it offers Okular as default - OK
- 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.
- thunderbird does not show any filetypes at all
Default applications (e.g. default browser) systemwide / per-desktop
Related links & bugs
- https://bugs.mageia.org/show_bug.cgi?id=2051
- diagnostics/fixes: https://forums.mageia.org/en/viewtopic.php?p=47081#p47081
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"
- 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
- for KDE to double-check
kreadconfig --group General --key BrowserApplication
- 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
- http://lxqt.org/
- http://blog.lxde.org/?p=1117
- http://wiki.lxde.org/en/Merge_LXDE-Qt_and_Razor-Qt
- http://wiki.lxde.org/en/LXDE-Qt
- https://wiki.mageia.org/en/Razorqt_Desktop
New wiki:
- https://github.com/lxde/lxqt/wiki
- https://github.com/lxde/lxqt/wiki/0.10-Roadmap
- https://github.com/lxde/lxqt/wiki/Contributing-code
- https://github.com/lxde/lxqt/wiki/Building-From-Source
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
- pcmanfm-qt opens "new file" when using open or open with on text files - investigate
- investigate adding DESKTOP_SESSION=kde to the session settings
- fix /etc/xdg usage by adding -DLXQT_ETC_XDG_DIR=%{_sysconfdir}/xdg to liblxqt and adapt+rebuild lxqt-common and lxqt-panel => https://github.com/lxde/lxqt/issues/385
- split out standalone libmfm-qt from pcmanfm-qt: https://sourceforge.net/p/lxde/mailman/message/34889322/
- investigate splitting apart libfm into libfm-qt and libfm-gtk, where qt version does not require libfm-gtk meaning build with --without-gtk
- may require two separate builds from the same src.rpm, the subpackages could stay as they are currently
- check packages from paiiou https://forums.mageia.org/en/viewtopic.php?p=56840#p56840
- remove dependency on libqtxdg from pcmanfm with recent git checkout
- submit corrections to .desktop files upstream
- add qps - http://www.student.nada.kth.se/~f91-men/qps/ / http://freecode.com/projects/qps
- ported to Qt5 and cleaned: https://github.com/QtDesktop/qps/pull/3
- check lxqt-sudo https://github.com/lxde/lxqt-sudo - used by pcmanfm-qt https://github.com/lxde/pcmanfm-qt/commit/cdb471861a6f0b01a45168a92e755ede4c0a6477
- does not seem to do any argument checking/sanitization and simply passes further unknown arguments to su/sudo: https://github.com/lxde/lxqt-sudo/blob/master/sudo.cpp#L131
- easypaint https://github.com/QtDesktop/EasyPaint/tree/qt5
- offer copyq instead of qlipper ? copyq seems actively developed and releases often
- https://github.com/hluk/CopyQ
- qlipper master has been ported to qt5
- add kvantum qt4/qt5 engine/theme/icon theme - https://bugs.mageia.org/show_bug.cgi?id=15864
- check to include qtfind: https://forum.manjaro.org/index.php?topic=16371.0
- check to include qxkb by default
- add themes from https://github.com/Caig/LXQt-graphics/tree/master/themes
- default window manager is openbox
- panel applet "keyboard indicator" does not always reflect capslock / numlock keys status
- check LXQT performance tips from pcmanfm author, especially QT/GTK+ theme and libexif
- import sddm-kcm module
- currently not of much use, apart from switching between themes
- investigate bluetooth autostart (bit disabled interface) => https://forums.mageia.org/en/viewtopic.php?p=56651#p56651
- investigate power management not autostarting/staying running => https://forums.mageia.org/en/viewtopic.php?f=15&t=9803
TEST
- let Qt use QT_XCB_FORCE_SOFTWARE_OPENGL=1 if hardware accleration features do not cover opengl 2.0+ https://github.com/sddm/sddm/issues/575
- https://lists.fedoraproject.org/pipermail/scm-commits/Week-of-Mon-20140127/1181404.html
- same script as Fedora implemented since http://svnweb.mageia.org/packages?view=revision&revision=997591
- check fix for Panel items don't always respond on first click #503
- seems to be an upstream Qt bug: https://bugreports.qt.io/browse/QTBUG-44231 https://github.com/lxde/lxqt/issues/436#issuecomment-72373045
- click delay was increased to 250ms to workaround upstream Qt bug
- check if dedicated leave menu is present after updates to LXQt 0.9
- No leave menu entry at all #462
- seems to be caused by /usr/menus/lxqt-applications.menu seems being installed in the wrong directory, it belongs in /etc/xdg/menus/
- reported upstream in new introduced lxqt-leave create clutter in MainMenu #437
- fixed by using /etc/xdg/menus/lxqt-applications.menu and actually putting it in the right directory
- No leave menu entry at all #462
- default theme frost - panel looks weird and half-empty
- added new default panel, added check to /usr/bin/startlxqt to copy over default config files from /etc
- investigate adding actu.sh from https://forums.mageia.org/en/viewtopic.php?p=50729#p50729 into /usr/bin/startlxqt and run it from there to add default lxqt/pcmanfm-qt configuration from /etc/lxqt for default users
- add default pcmanfm theme/config for pcmanfm-qt
- check hardcoded /etc/pcmanfm-qt/lxqt/settings.conf
- change default pcmanfm wallpaper to default Mageia wallpaper
- check hardcoded values in /etc/lxqt/panel.conf
- sed -i 's|menu_file=.*|menu_file=/etc/xdg/menus/lxde-applications.menu|g' /etc/lxqt/panel.conf
- check hardcoded values in /etc/lxqt/session.conf
- drakconf icon is not displayed - seems lxqt doesn't search in /usr/share/icons, when hardcoding Icon=/usr/share/icons/drakconf.png in /usr/share/applications/mageia-drakconf.desktop icon is displayed
- should be fixed with new libqtxdg according to https://github.com/lxde/lxqt/issues/389
- default panel configuration from /etc/lxqt/panel.conf is only respected partly, quicklaunch doesn't show preconfigured launchers
- pcmanfm-qt -> Tools > Open as Root tries to run kdesu / gksu, try to switch to pkexec or similar
- switched to kdesu as with gksu or beesu no icons are displayed, and pkexec is not for X applications
DONE
- lxqt-panel task manager missing Requires on kwindowsystem ?
- check https://github.com/lxde/lxqt/issues/354
- seems kwindowsystem has no automatic provides for the qt modules it contains, will have to add explicit Requires in lxqt-panel
- 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
- bug 15538 fixed upstream via https://github.com/lxde/lxqt/issues/518
- 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
- get updated desktop-file-utils submitted to infra_4, so that LXQt categories don't have to be stripped away from .desktop files
- 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
- wallpaper will only be shown when user changes desktop preferences, and changes the mode. Preconfigured wallpaper, either from pcmanfm /etc/pcmanfm-qt/lxqt/settings.conf or the wallpaper from theme will not show up by default -> lxqt does not respect configuration from /etc/lxqt and /etc/pcmanfm-qt/lxqt/settings.conf and Decouple wallpapers and themes and improve wallpaper handling
- 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
- sddm is recommended DM for LXQT -> http://sourceforge.net/p/lxde/mailman/message/32675829/
- 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
- upstream bug: Battery info is always shown even when there is no battery
- first start now shows first setup for powermanagement applet, so this should be OK
LIST OF BUGS / MISC
- lxqt doesn't read the correct settings for multiple XDG_CONFIG_DIRS #349
- probably dependent on above issue lxqt does not respect configuration from /etc/lxqt and /etc/pcmanfm-qt/lxqt/settings.conf #250
- Leave dialog no longer shown after update to Qt 5.6 #1008
- Add wine menu entry to the start menu
- pcmanfm-qt doesn't remember settings
- .desktop file on desktop lacking icon
- Decouple wallpapers and themes and improve wallpaper handling
- Cannot display Wallpaper
- Recommended icon theme
- lxqt-config - background color changes unexpectedly
- Color shifting on tray clicks & menu mouseover
- Update LXQt themes to support the new lxqt-panel "urgent" property
- build order suggestion
- Wiki entry about LXQt theming
- ShowDesktop widget does not work
- Battery info is always shown even when there is no battery
- Enable power management by default on battery devices