Comments (11)
I believe there is a FHS standard for adding shortcuts/icons for Linux.
from desurium.
There is a standard and it's elegantly simple to the point of almost being ridiculous. Just create a .desktop
file like this example one:
[Desktop Entry]
Type=Application
Name=FooGame
Comment=A game of foo
Comment[fr]=Un jeu de foo
TryExec=/home/username/opt/desura/common/foo-game/value_of_iteminfo.installcheck
Exec=/home/username/opt/desura/common/foo-game/desura_launch_Play.sh
Icon=/home/username/opt/desura/common/foo-game/absolute_path_value_of_iteminfo.icon
Categories=Game;BoardGame;Java;
...and then use one or both of these commands to install it:
xdg-desktop-icon install YourIcon.desktop
xdg-desktop-menu install YourIcon.desktop
The man pages for both of those commands give you a concise and helpful introduction to the .desktop
file spec, but it's not necessarily up-to-date on what is required and optional, so I strongly suggest spending the 15 minutes to read the actual spec itself at http://standards.freedesktop.org/desktop-entry-spec/latest/
If nothing else, you'll want to go above and beyond the man pages by mapping any category information Desura can provide to the Categories
field so Desura doesn't annoy people who are used to having their launcher menus automatically categorize icons for them. (Or, at the very least, set Categories=Game;
)
The registered list of valid categories is at http://standards.freedesktop.org/menu-spec/latest/apa.html
from desurium.
I'm a very big fan of the standards there. In fact, I implemented the XDG directory standard.
from desurium.
Agreed.
I'd actually be trying to convert my little Python script for setting icons on STATUS_LINK
entries into some C++/JS patch to use XDG menus to resolve commands to icons but I haven't yet been able to make time to track down why the Desurium build instructions fail on my Lubuntu Oneiric desktop.
from desurium.
ssokolow, i highly recommend you check out karolherbst's fork, it uses CMake.
from desurium.
Thanks. I actually would normally be keeping an eye on the network view, but I've been overworked lately and forgot. I'll give it a try as soon as I can make time.
from desurium.
look here:
karolherbst/Desurium@master...bug29
any suggestions?
I think about to move the whole desktop creation stuff into ItemInfo
from desurium.
we should add a functionality to add games to the application menu on Linux and on Windows (if it isn't there already)
from desurium.
In Windows, that would be partially covered by issue #138. I'm unfamiliar with the ins and outs of jumplists, though, so I don't know how much it would cover.
from desurium.
yes I will add this to bug #138, so I can close this for the Linux part later
from desurium.
fixed since fd3f6d4
from desurium.
Related Issues (20)
- Add precompiled headers for windows builds
- Trouble by using 32bit Desura games in openSUSE 64bit HOT 3
- libcef crash on Ubuntu 13.10 with segfault HOT 6
- Game updates dont update desura cache
- Progress doesnt always finish at 100% for mcf uploads
- Form height sometimes crops buttons and other form elements
- cvarlist should be sorted alphabetically
- Prepare page for items doesnt close on error and stays in zombie state
- error during update causes item state to get stuck in updating at 0%
- Linux fails to exit cleanly when libunittests.so is loaded
- Fix wildcard manager to not use raw c strings and instead return std::string
- Mcf create can throw exceptions and skip files
- Create mcf form stays open if it has an error during parsing directory
- Some forms in linux cant accommodate all text HOT 2
- 64 bit version forcibly installs wine-silverlight5.1-installer package
- Removed boost::thread in favor of std::thread
- Gamepad support
- Compiling with VS doesn't work HOT 2
- Build errors : mcf_util.dir/code/UploadMCF.cpp.o and mcf_util.dir/all HOT 5
- RPM .spec files HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from desurium.