[Bug filed] xdg in Mageia 2 - is it broken?

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

[Bug filed] xdg in Mageia 2 - is it broken?

Postby jaywalker » Aug 29th, '12, 01:03

I started out chasing down some issues with the Gambas Desktop component when I was side-tracked into looking more closely at xdg-utils.
I haven't even started to understand what it is all about, but I have uncovered some inconsistencies which my limited experience is insufficient to explain.

The first thing I noticed is that the xdg-settings script includes LXDE in the desktops it purports to recognise, but it seems to fail. It tests for DESKTOP_SESSION=LXDE (it could also test for XDG_CURRENT_DESKTOP=LXDE as that exists too) but when I use
Code: Select all
xdg-settings get default-web-browser
I get the answer
Code: Select all
xdg-settings: unknown desktop environment
.

Well, I filed that under mañana and moved on.

Then I discovered that versions of the xdg scripts are shipped with Gambas source rpm so I thought I would check which versions I have. I checked the Mageia 2 package version and that is 1.1.0-0.rc1.2.mga2 but each of the xdg scripts in /usr/bin reports as version 1.0.2.
Code: Select all
[richard@Bathtub bin]$ which xdg-settings
/usr/bin/xdg-settings
[richard@Bathtub bin]$ /usr/bin/xdg-settings --version
xdg-settings 1.0.2
Is it correct that the package version is different from the file version numbers?

One final(?) puzzle is the inconsistency in the rpm description of xdg-utils :
This version of xdg-utils contains the following commands:
xdg-desktop-menu: command line tool for (un)installing desktop menu items
xdg-desktop-icon: command line tool for (un)installing icons to the desktop
xdg-mime: command line tool for querying information about file type handling and adding descriptions for new file types
xdg-icon-resource: command line tool for (un)installing icon resources
xdg-open: opens a file or URL in the user's preferred application
xdg-email: command line tool for sending mail using the user's preferred e-mail composer
xdg-su: run a program as root after prompting for the root password
xdg-screensaver: command line tool for controlling the screensaver

Only seven of these files are actually installed - xdg-su is missing.

Incidentally, the Gambas 3 source does include xdg scripts with version number 1.1.0 rc1.

So I reckon the BIG question is "Is Mageia shipping the correct version of xdg-utils in its mga2 package?"
The little question is "Why do the xdg scripts not get the right information about my LXDE desktop?"
And the tiny question at the end is "If they did correctly identify my desktop, would they know what to do with the information?"


Here's hoping ...

Richard

See also Bug 7395
jaywalker
 
Posts: 341
Joined: Nov 17th, '11, 02:38
Location: Belfast, Northern Ireland

Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest