Work in progress to improve keyboard shortcuts in Xfce
Long time no blog! I started to hack again last week with the goal of improving keyboard shortcuts handling in Xfce. I touched that during the Xfce 4.10 cycle and this unfortunately seem to have introduced a bunch of bugs that I'm now trying to resolve. I also took this opportunity to try to overhaul the UI and make it more understandable.
This code is available in the jeromeg/keyboard-shortcuts branches of xfwm4, libxfce4ui and xfce4-settings on the Xfce Git server. Some improvements are still planned but most of what I was planning is already implemented.
Here is a list of reported bugs which should be fixed once I merge this:
- Keyboard shortcuts on numeric keypad are ineffective
- Usability issue : the dialog for adding keyboard shortcuts isn't clear
- Unable create keyboard shortcut <Alt>+Print
- Add a button to edit/modify a keybinding
- Control modifier appears as Primary when setting shortcuts
- Keyboard shortcuts of the same shortcut
- Default shortcuts not working
- Keyboard mapping for XF86PowerButton and Ctrl+Insert ineffective
- <Shift> modifier not recognized correctly
- Keyboard shortcuts shipped by Xfce are wrong since the Gtk switch from Control to Primary
A brief summary: shortcuts now work when Caps Lock is on, shortcuts using Shift or the numeric keypad are handled correctly, a bunch of regressions are fixed, conflict handling is now more reliable and the UI should be better.
Regarding keyboard shortcuts bugs, keyboard shortcuts not working correctly after a reboot or not work working in some other cases seem to occur because of a "wrong" shortcut database often caused by a problem in the migration script in Xfce 4.6. In that case, the easier way to fix this seems to be to revert all keyboard shortcuts to default (in xfwm4-settings and xfce4-keyboard-settings) and to rebind them using the dialogs.
Screenshots
Readable shortcut labels in the UI
Improved dialogs to add and edit shortcuts
Improved conflict handling
Testing is welcome!
If you know what you are doing, it would be useful if you could test those changes and report me by mail any remaining issues. Suggestions for improvements are also welcome.
How to start contributing to Xfce or any other open source project
It’s been a while since I’ve updated this website and even longer since I’ve written anything useful. But since I’ve received a couple of mails from people looking to contribute to Xfce recently, I thought I’d share some “wisdom” acquired over the past few years while working on Xfce and doing a lot of community work. My thoughts are not limited to Xfce and will apply to a lot of other projects out there as well.
Here’s the bitter truth for those looking for some quick pointers to start contributing to Xfce: you’ll have to find out yourself.
The reason is not that we are lazy or wouldn’t welcome your contributions. In fact, the reason, I believe, is very simple: you will be more excited, motivated and, ultimate, be more successful if you work on something that interests you. We can help you in making the decision what to invest your time in easier, e.g. by listing projects, features or issues that we or our users consider worth working on. Some projects do this very visibly (e.g. through bounties). In Xfce, this information is hidden in the depths of the wiki. Here are a few links that you may find interesting:
- Design SIG - working on improving the user experience of Xfce
- Component wish list - populated by our users
- Panel plugin wish list - populated by our users
Clearly, the above information could be more visible. There could be a prominent link on the Xfce website to a well-maintained and up-to-date list. Would that help people? Maybe.
Perhaps it is a good thing that the information isn’t just one click away. Open source projects have always been about scratching your own itch. This is how I got involved in everything I’ve done over the years. this approach is reflected by what people do and sometimes even by how companies make money. Thinking about it now, it is a concept deeply rooted in the evolution of mankind (think: the invention and improvement of tools, industrialisation and all that shit).
So: scratch your own itch.
If you want to start contributing to a project, try this exercise:
- Look at the project, think about what you don’t like or what you feel could be improved
- Try to collect information on what pieces are involved in e.g. the feature you’re missing or the bug you’ve spotted
- Try to find the place where you could try adding your feature or fixing your bug
- Ask whether developers are interested in the feature or look at whether there already is an item for your issue in the bug tracker
- The rest is communication and coding
It’s not a fast path because you might not be able to contribute something of great value in the beginning. But if you’re dedicated, have enough spare time to make a difference and are keen on improving things step by step, you might eventually reach a point where you take over responsibility for more and more exciting or important tasks.
Good luck!
Xubuntu is not a refugee camp
In growing amounts, people are migrating to Xubuntu from Ubuntu and other derivatives. While many of our new users tell they love Xubuntu, some of them would like to see a feature from their old configuration, be that a feature from their desktop environment or an application closely tied with it.
I don’t blame them for wanting different features than I do. I truly think there is users for every major and minor desktop environment. There will not be one desktop environment to rule them all, just because peoples opinions on looks and the perfect workflow differ thoroughly.
When our new users ask if they can have their feature, we have to ask them, and especially, what the user needs to ask theirself is if the feature, or the lack of, is really something that makes or breaks their experience. If they don’t think they can be at home without that feature, I wholeheartedly recommend them to keep using what they had.
If they are uncertain, I’d really like them to try to see the coin from the other side. Xfce nor Xubuntu have never tried to be like GNOME or Ubuntu. When Unity came around, Xubuntu never tried to become a substitute for GNOME 2 -like Ubuntu either, or specifically persuade migrating users.
The Xfce team has always been executing their own vision of the perfect desktop environment. Since the vision has been in some parts similar to GNOME earlier, some might argue that Xfce should still follow GNOME’s footsteps by implementing some new features similar to GNOME’s new features. I don’t think this is logical thinking, and it sounds like it comes from somebody who thinks Xfce should satisfy people who are migrating from GNOME.
The same goes with Xubuntu too: we are still building Xubuntu on top of Xfce because we like how it is and can agree with their vision. If this will ever change, it’s self-evident that either the people running Xubuntu need to change or Xubuntu needs to stop being. That being said, I don’t think that’s going to happen in the foreseeable future.
Finally, I’d like to emphasize that all users migrating from Ubuntu and other desktop environments are warmly welcome to the Xubuntu community. There are many ways to achieve the same goal when it comes to desktop environments. We believe Xfce is the best one for us as it has been and as it is. We are not a refugee camp, we have decided to take this path. This is our home.
This article is part of the article series A day in an open source project.
Vim and Vala
I once wrote a quick note about Vala and Vim (or Vim and Vala) and the use of the Tag List plugin. Here is a clean post about these two beasts.Vim — probably the best editor out there, at least always after trying out different editors I end up with Vim — has great plugins. However there is a lack of support for the Vala language. So here are two basic add-ins to include in the Vim editor.
Vala syntax
First there is no syntax color for this language. A quick fix is to use the C# syntax with the command :set filetype=cs. That works but is not ideal, ideal is to install a vim.syntax file, and there is one available on this GNOME Live! page.First download the file from this page and save it under ~/.vim/syntax. Next at the following lines to your ~/.vimrc file:
" Filetypes
augroup filetypedetect
au! BufRead,BufNewFile *.vala,*.vapi setfiletype vala
augroup END
augroup vala
autocmd BufRead *.vala,*.vapi set tw=100 efm=%f:%1.%c-%[%^:]%#:\ %t%[%^:]%#:\ %m
augroup END
Tag List
Tag List is a powerful plugin that lets you explore classes or functions from a source file, also called a source code browser. The installation steps are simple, they are also available bellow, and again to get it working with Vim there is a small hack to include inside the ~/.vimrc file.First download the latest version of taglist from this page. Than uncompress the archive with, for example, the command line:
unzip -x taglist_45.zip -d $HOME/.vim/Than go inside ~/.vim/doc, run Vim and inside Vim execute the command :helptags .:
cd ~/.vim/docFinally add the following lines inside ~/.vimrc:
vim
:helptags .
" Work-around Tag List for Vala
let tlist_vala_settings='c#;d:macro;t:typedef;n:namespace;c:class;'.
\ 'E:event;g:enum;s:struct;i:interface;'.
\ 'p:properties;m:method'
Now Vim is ready for Vala, and it's possible to browse source code by typing the command :TListToggle.
![]() |
Vim Vala Tag List |
Vim and Vala
I once wrote a quick note about Vala and Vim (or Vim and Vala) and the use of the Tag List plugin. Here is a clean post about these two beasts.Vim — probably the best editor out there, at least always after trying out different editors I end up with Vim — has great plugins. However there is a lack of support for the Vala language. So here are two basic add-ins to include in the Vim editor.
Vala syntax
First there is no syntax color for this language. A quick fix is to use the C# syntax with the command :set filetype=cs. That works but is not ideal, ideal is to install a vala.syntax file, and there is one available on this GNOME Live! page.First download the file from this page and save it under ~/.vim/syntax/. Next add the following lines to your ~/.vimrc file:
" Filetypes
augroup filetypedetect
au! BufRead,BufNewFile *.vala,*.vapi setfiletype vala
augroup END
augroup vala
autocmd BufRead *.vala,*.vapi set tw=100 efm=%f:%1.%c-%[%^:]%#: %t%[%^:]%#: %m
augroup END
Tag List
Tag List is a powerful plugin that lets you explore classes or functions from a source file, also called a source code browser. The installation steps are simple, they are also available bellow, and again to get it working with Vala there is a small hack to include inside the ~/.vimrc file.First download the latest version of taglist from this page. Then uncompress the archive with, for example, the command line:
unzip -x taglist_45.zip -d $HOME/.vim/Then go inside ~/.vim/doc, run Vim and inside Vim execute the command :helptags .:
cd ~/.vim/docFinally add the following lines inside ~/.vimrc:
vim
:helptags .
" Work-around Tag List for Vala
let tlist_vala_settings='c#;d:macro;t:typedef;n:namespace;c:class;'.
'E:event;g:enum;s:struct;i:interface;'.
'p:properties;m:method'
Now Vim is ready for Vala, and it's possible to browse source code by typing the command :TlistToggle.
![]() |
Vim Vala Tag List |
Questions after the 4.10 release
A short post to answerer some questions I’ve ready in comments on the 4.10 release news across the internet. If you have more questions, let me know in the comments and I’ll try to answer them.
A new stable release after 16 months? And no 4.8.1 release…
This is because Xfce has a different release model than for example GNOME or KDE when it comes to stable releases. Because of the limited team of developers we want to spend the least time possible on releasing packages. Big stable releases like other desktops do consume a lot of time, even with the small-ish amount of core packages in Xfce.
Therefore after 4.6 the following was decided: we only do 4 big releases (3 preview releases and 1 stable release) and after that only stable releases for individual packages. So the desktop version is 4.10 (notice the lacking micro-number), individual components could have higher 4.10.x numbers.
As an example, the last 4.8 stable release of xfce4-dev-tools is 4.8.0, the same as in the 4.8 fat-tarball release. The latest 4.8 release of xfce4-panel is 4.8.6 (6 stable releases after 4.8.0, which was in the 4.8 fat-tarball).
We know this is harder for starting users, who prefer to grab 1 tarball with all the latest versions, but instead need to crawl through /src/xfce and need to find the latest version. For distributions this is a lot easier: packagers are subscribed to the xfce-announce mailing list or peek identi.ca and once in a while they need to update 1 of the packages.
Nonetheless this is still a point where we can improve so I’ll see if I can provide more information on the website (announcements and links to the latest package versions).
4.10 only had 2 preview releases, because no critical bugs appeared and translations were in a good shape. Enough reasons for me to skip pre3 and release 4.10 instead.
Online Documentation Wiki
Just to be clear about this: we understand online docs are not a solution, but it was the best we could do in a short time. Hopefully the wiki-based setup will attract more contributors (who previously feared docbook or mallard, yes we tried that too) and lead to a complete set of documentation . When we feel satisfied with the content of the wiki we’ll look into a “wiki snapshot” for offline usage and ship that in an xfce4-docs package.
Gtk3
First 2 things: no Xfce 4.10 is not using gtk3, only the gtk-xfce-engine theme engine supports gtk3. Secondly we will discuss if Xfce 4.12 will be ported to gtk3. I’ll explain the latter:
Technically gtk3 is nothing different then gtk2 when it comes to programming. The hard parts are porting of some custom widgets (drawing and size allocation), replacements of some deprecated symbols and link to gtk3 libs. All things a user is not going to notice if we do it right.
Gtk3 is also not faster than gtk2, maybe there are some areas were it got a bit faster, but so there are areas where performance decreased a bit. Nothing shocking here.
An issue I’m aware of is theming issues in gtk3. From what I understand this changed back and forward in gtk 3.0, 3.2 and 3.4. So we need to decide which version we require to get this working consistently, because people will complain if only the Raleigh theme can be used :).
From the Xfce point of view there is (again) the resource problem for porting all plugins, because if for example the panel is ported to gtk3, also the plugins need to be ported. Not all goodies are maintained, but usually they work and distros can compile them. If in 4.12 suddenly 50% of the external plugins are not working that will be another thing users will notice.
At any rate, don’t get overly excited about gtk3, it’s just gtk 2.26 with a huge api break :). Once we decided which version we use in 4.12, I’ll post it on the blog.
LXDE still consumes less memory
*sigh* I’m not going to rant on this because as a user you should choose the desktop that makes you happy, but anyway it annoys me a tiny bit. So just to throw some information:
LXDE and Xfce are both based on the same toolkit and provide roughly the same set of features. That as a start makes it technically almost impossible to be much better or worse regarding memory usage. I think this whole myth started by comparing two distributions (clue: strcmp (distro_a + 1, distro_b + 1) == 0).
I’m sure Xfce consumes a bit more memory, because more processes are started. Especially when external plugins are added to the panel: a design decision to make the panel more stable.
I don’t know or care where this comparison started, but if somebody does this again the the future, please compare the actual memory usage and don’t use free. Or even better: don’t compare memory usage at all because it is pretty useless.
That said: if I start a default LXDE and Xfce 4.10 desktop (default Arch Linux packages) and use ps_mem.py, Xfce consumes 2 MiB more memory (same or desktop-equal applications are started). Do whatever you want this is number, as long as you compare apples and apples.
Not much accomplished in over 1 year
Sorry, I also work the entire week. But I don’t blame myself, Xfce is a fun project for all of us and if people move to another country, have a day job, a life, school/exams or simply don’t feel like working on Xfce not much progress is made.
Personally I don’t have the feeling not much was done in 4.10, we didn’t break anything major and a lot of the todo’s for 4.10 were completed in the release cycle. The focus was polishing and that’s what we did!
Updates:
- 01-05 13:34: Added “Not much accomplished in over 1 year”.
Xfce 4.10 released!
Today, after 1 year and 4 months of work, we are pleased to announce the release of the Xfce desktop 4.10, a new stable version that supersedes Xfce 4.8.
In the 4.10 cycle we mainly focused on polishing the desktop and improving the user experience in various ways. Highlights of this release are:
- A new application finder that has been completely rewritten and combines the functionality of the old xfce4-appfinder and xfrun4.
- The panel now has an alternative vertical display mode (a deskbar). What is more, panel plugins can be arranged in multiple rows, which is particularly useful in the deskbar mode.
- A new MIME type editor that allows you to easily change applications used for opening different file types. The mouse and touchpad settings dialog and the settings editor were extended in terms of functionality. The former now supports tablets in a much better way.
- It is now possible to launch applications and open files on the desktop with a single click of the mouse. In addition, the 4.10 desktop can display thumbnails and automatically advance through the wallpaper list.
- The window manager can be configured to tile windows when dragging them to the screen edges. The tab window (Alt+Tab) supports more flexible theming and cursor key navigation.
An online tour of the changes in Xfce 4.10 can be viewed here:
A detailed overview of the changes compared to Xfce 4.8 and Xfce 4.10 preview releases can be found on the following page:
http://xfce.org/download/changelogs
This release can be downloaded either as a set of individual packages or as a single fat tarball including all these individual versions:
http://archive.xfce.org/xfce/4.10
Thank you all the contributors, bug reporters, as well as translators and packagers for your efforts in making this release possible.
Best regards,
The Xfce development team
Xfce 4.10pre2 released!
Xfce 4.10pre2 is now available for download.
It includes the following releases of Xfce core components:
- exo 0.7.3
- garcon 0.1.12
- gtk-xfce-engine 2.99.3
- libxfce4ui 4.9.2
- libxfce4util 4.9.1
- thunar 1.3.2
- thunar-volman 0.7.1
- tumbler 0.1.24
- xfce4-appfinder 4.9.5
- xfce4-dev-tools 4.9.2
- xfce4-panel 4.9.2
- xfce4-power-manager 1.1.0
- xfce4-session 4.9.1
- xfce4-settings 4.9.5
- xfconf 4.9.1
- xfdesktop 4.9.3
- xfwm4 4.9.1
Individual tarballs are available for download now:
http://archive.xfce.org/xfce/4.10pre2/src
A tarball including all individual releases can be downloaded here:
http://archive.xfce.org/xfce/4.10pre2/fat_tarballs
Release notes for 4.10pre2
The Xfce development team is proud to announce the second preview release for Xfce 4.10. Together with this preview release, the Xfce project announces the string and code (only critical bug fixes or regressions) freeze for the final 4.10 release which is set to be pushed out to the world on April 28th, 2012.
This release incorporates some new features like improved responsiveness of file operations in Thunar and tiling improvements in Xfwm4. Everything else is bug fixes and a _lot_ of translation updates.
A list of all changes is available on:
http://xfce.org/download/changelogs/4.10pre2
We hope you will enjoy this release. Please give us feedback by sharing your thoughts, blogging, tweeting or by filing bug reports! With your help, 4.10 will be the best release ever (at least until 4.12)!
Kind regards and thanks to everyone who has contributed to this release,
The Xfce development team
We’re still looking for mirrors
Since we’re using MirrorBrain to distribute the Xfce packages a number of good mirrors were collected. However, as you can see in the picture below, South America and Asia are not covered with good local mirrors.
So I you have the possibility to become and Xfce mirror located in these continents, please read this page!
Xfce 4.10pre1 released!
Xfce 4.10pre1 is now available for download.
It includes the following releases of Xfce core components:
- exo 0.7.2
- garcon 0.1.11
- gtk-xfce-engine 2.99.2
- libxfce4ui 4.9.1
- libxfce4util 4.9.0
- thunar 1.3.1
- thunar-volman 0.7.0
- tumbler 0.1.24
- xfce4-appfinder 4.9.4
- xfce4-dev-tools 4.9.1
- xfce4-panel 4.9.1
- xfce4-power-manager 1.0.11
- xfce4-session 4.9.0
- xfce4-settings 4.9.4
- xfconf 4.9.0
- xfdesktop 4.9.2
- xfwm4 4.9.0
Individual tarballs are available for download now:
http://archive.xfce.org/xfce/4.10pre1/src
A tarball including all individual releases can be downloaded here:
http://archive.xfce.org/xfce/4.10pre1/fat_tarballs
Release notes for 4.10pre1
The Xfce development team is proud to announce the first preview release for Xfce 4.10. Together with this preview release, the Xfce project announces the feature freeze for the final 4.10 release which is set to be pushed out to the world on April 28th, 2012.
This release incorporates major changes to the core of the Xfce desktop environment and hopefully succeeds in fulfilling a number of long time requests. Among the most notable updates is the new application finder that merges the functionality of the old appfinder and xfrun4. The Panel also has a new vertical mode [aka Deskbar] for better space usage on wide-screen monitors and a new actions plugin. On the settings side the settings helper is integrated in xfsettingsd, saving 1 running process. There is also a reworked settings dialog with categories and pluggable dialogs enabled by default. Basic Synaptics and Wacom settings in the Mouse settings and a new MIME-Type editor. Thunar gained a more polished layout to reduce space usage and more responsive interaction with the thumbnail generator. Because we have not decided on how to merge the desktop functionality into Thunar yet, Xfdesktop has instead received various improvements, including single-click support, desktop icon thumbnails and better pasting of files. The Session Manager has improved power management code, tips have been removed and cleanup sessions from the interface. Last but not least, the Window Manager now has support for tiling windows and arrow key navigation in the task switcher.
Another big change for users is the removal of user documentation of the packages and introduction of http://docs.xfce.org. The reason for this change is the limited contribution of documentation since Xfce 4.8, so we hope the wiki will attract more contributors. The help buttons in the interface still work, but you’ll be asked to open the documentation website in your web browser.
Furthermore we dropped xfce-utils. Its content has either been removed or moved to other Xfce packages. All other dependency changes are listed in the 4.10pre1 ChangeLog. The Xfce core also gained a couple of new components because we think they are critical for a minimal desktop: xfce4-power-manager (power management), tumbler (thumbnail generation for Thunar and other components), garcon (menu library, was already a dependency in 4.8), thunar-volman (volume manager for Thunar).
Of course translations also improved a lot, thanks to the amazing work of our translation teams.
A list of all changes is available on:
http://xfce.org/download/changelogs/4.10pre1
We hope you will enjoy this release. Please give us feedback by sharing your thoughts, blogging, tweeting, denting or by filing bug reports. With your help, 4.10 will be the best release ever (at least until 4.12)!
Kind regards and thanks to everyone who has contributed to this release,
The Xfce development team