LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-08-2024, 09:45 PM   #1
euzao
LQ Newbie
 
Registered: Jan 2021
Posts: 4

Rep: Reputation: Disabled
WPrefs.desktop points to an non existent executable


WPrefs.desktop, installed on /usr/share/applications by WindowMaker, does not work properly since it does point to a non existent executable, i.e., WPrefs.

The proper executable is found at /usr/lib64/GNUstep/Applications/WPrefs.app/WPrefs, as mentioned in the WPrefs. desktop itself.
 
Old 05-09-2024, 08:09 AM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,377

Rep: Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757
On my Slackware64 15.0 install, I have no WPrefs.desktop file. There is no mention of such a file in the windowmaker-0.95.9-x86_64-3 package.
The executable is installed at /usr/lib64/GNUstep/Applications/WPrefs.app/WPrefs
My guess is you have adopted a stray.
 
Old 05-09-2024, 08:45 AM   #3
euzao
LQ Newbie
 
Registered: Jan 2021
Posts: 4

Original Poster
Rep: Reputation: Disabled
I am sorry. I forgot to mention that I am running -current.
 
Old 05-09-2024, 04:21 PM   #4
0XBF
Member
 
Registered: Nov 2018
Distribution: Slackware
Posts: 781

Rep: Reputation: 895Reputation: 895Reputation: 895Reputation: 895Reputation: 895Reputation: 895Reputation: 895
I fired up a windowmaker session and saw that WPrefs is working fine for me on slackware64-current. Since that's not a helpful answer I did a little more digging into why it works.

In windowmaker where you would naturally use WPrefs, that WPrefs path is baked into the default root window menu. E.g:
Code:
$ grep -B3 -A1 WPrefs ~/GNUstep/Defaults/WMRootMenu 
  (
    "Configure Window Maker",
    EXEC,
    "/usr/lib64/GNUstep/Applications/WPrefs.app/WPrefs"
  ),
That menu doesn't bother using Freedesktop's "desktop specification" and the respective '/usr/share/applications/WPrefs.desktop' file, which is why it works fine from windowmaker itself.

So I guess they are supplying that file to use in other desktop environments that are desktop spec compliant?

Based on that I tried running WPrefs from xfce4's Applications menu (its under "Settings"), and yes that comes up with an error "Failed to execute/find the file".

The WPrefs.desktop file:
Code:
[Desktop Entry]
Version=1.5
Type=Application
Name=WPrefs
Comment=Window Maker Preferences
TryExec=/usr/lib64/GNUstep/Applications/WPrefs.app/WPrefs
Exec=WPrefs
Icon=/usr/lib64/GNUstep/Applications/WPrefs.app/WPrefs.xpm
Categories=Settings;DesktopSettings;
Note: TryExec is not a fallback path. From the freedesktop desktop spec:
Quote:
TryExec - Path to an executable file on disk used to determine if the program is actually installed. If the path is not an absolute path, the file is looked up in the $PATH environment variable. If the file is not present or if it is not executable, the entry may be ignored (not be used in menus, for example).
Its meant to be used with freedesktop's autostart specification to verify the executable listed under Exec= (at least thats the only other mention they have of its use, see the autostart spec for reference).

With the Exec= line being a relative path, you'll have to add that to your user's PATH environment variable to use WPrefs in an environment other than windowmaker. E.g: Set something like the following in your ~/.bash_profile script:
Code:
export PATH=$PATH:/usr/lib64/GNUstep/Applications/WPrefs.app
Note that you will also have to have run windowmaker at least once to set up the ~/GNUstep directory, otherwise running WPrefs will also throw errors about non-existent config files. But then again, why are we adjusting windowmaker's settings from a different desktop environment?

So in the end this seems like a windowmaker/upstream problem to me, since they are shipping a broken WPrefs.desktop file.

The other option is to not include that file in the windowmaker package at all, since windowmaker doesn't use it. Removing it would remove it from the menus of xfce/kde/gnome and other desktop spec compliant environments, where people might click it and be greeted by that error.

HTH.

Last edited by 0XBF; 05-09-2024 at 04:32 PM. Reason: s/wmaker.desktop/WPrefs.desktop/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Test for non-existent or non-regular files Faki Linux - Newbie 10 03-27-2023 08:30 PM
[SOLVED] issue installing WindowMaker and its WPrefs.app not in proper place to work after install BW-userx Linux - Software 1 01-08-2018 01:03 PM
WindowMaker problems: WPrefs is corrupted? easuter Linux - Software 2 11-26-2006 04:24 AM
Mutt sorts non existent mail ernobe Debian 0 12-17-2004 08:18 AM
Our mail server is being flooded with email address to non-existent recipients. gaslq Linux - Networking 5 12-14-2004 08:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration