Jump to content

[Linux] Leadwerks not using xdg specs properly.


Recommended Posts

Leadwerks always defaults to Firefox when I'm opening the help (Default here is Chromium), I would assume it is hard coded and you are not using xdg-open? This should be a super easy fix.

 

https://wiki.archlinux.org/index.php/Xdg-open

(I'm not using Arch but their wiki is a useful tool for just about everything)

 

A less critical issue is Leadwerks defaulting to ~/Documents for project files but that folder is localized on systems using non-English locales. For example in German it is ~/Dokumente

 

Arch Wiki (https://wiki.archlinux.org/index.php/Xdg_user_directories) tells us:

 

XDG_DESKTOP_DIR="$HOME/Desktop"

XDG_DOWNLOAD_DIR="$HOME/Downloads"

XDG_TEMPLATES_DIR="$HOME/Templates"

XDG_PUBLICSHARE_DIR="$HOME/Public"

XDG_DOCUMENTS_DIR="$HOME/Documents"

XDG_MUSIC_DIR="$HOME/Music"

XDG_PICTURES_DIR="$HOME/Pictures"

XDG_VIDEOS_DIR="$HOME/Videos"

  • Upvote 1
Link to comment
Share on other sites

  • 9 months later...

It turns out all I actually had to do was change this code:

System("firefox "+url);

 

To this:

System("xdg-open "+url);

 

And it appears to work.

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...