Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux (deb) .desktop files #164

Closed
brendtumi opened this issue Feb 22, 2016 · 9 comments
Closed

Linux (deb) .desktop files #164

brendtumi opened this issue Feb 22, 2016 · 9 comments
Assignees

Comments

@brendtumi
Copy link

Is it posible to create .desktop file while packing for linux (deb) ?

@develar develar self-assigned this Feb 23, 2016
@develar
Copy link
Member

develar commented Feb 23, 2016

What do you mean? Icons? Icons is already fixed in 2.8.

@brendtumi
Copy link
Author

I did not try on 2.8 yet, But i was talking about desktop shortcuts (Entry).
For locking to launcher or show listing on search.
Example: mongochef.desktop

[Desktop Entry]
Type=Application
Exec=/home/xxx/mongochef/bin/mongochef.sh
Name=MongoChef
GenericName=MongoChef
Icon=/home/xxx/mongochefs/mongochef.png
Terminal=false
Categories=Development;IDE;mongodb;

@develar
Copy link
Member

develar commented Feb 23, 2016

@brendtumi 2.8 new API creates desktop shortcuts and icons.

Also, you can provide own .desktop template, but it is not yet documented and tested. In any case I think that it is not a user-friendly way. Instead, should be a way to customise .desktop` using /~https://github.com/loopline-systems/electron-builder#distributable-format-configuration

So — please try new 2.8 API and if generated .desktop will be not suitable for you — please report what you want to change.

@uggrock
Copy link

uggrock commented Feb 25, 2016

In the provided link, there are no details about the Linux configuration

@develar
Copy link
Member

develar commented Feb 25, 2016

@uggrock Because of but it is not yet documented

Have you tried 2.8 new API? What's wrong? What exactly do you want to fix in the generated deb package?

@develar develar added the linux label Feb 25, 2016
@uggrock
Copy link

uggrock commented Feb 25, 2016

Yes we tryed it, but I still can not get an icon of my app in the deb file. Is there any example config for Linux?

@develar
Copy link
Member

develar commented Feb 25, 2016

@uggrock Linux icon set will be generated automatically on the fly from the OS X icns file. Please see step 2. Did you follow this step and created build/icon.icns file?

@uggrock
Copy link

uggrock commented Feb 26, 2016

@develar Thanks for your answer. The part with generaration the linux icon from icns file is not very intuitive. Is the use of external config file now deprecated? Will it be possible in the feature to customize the name of the build folder, with the location of the icons?

@develar
Copy link
Member

develar commented Feb 26, 2016

The part with generaration the linux icon from icns file is not very intuitive

The problem is that linux layout is very complex and it is not easy for you, as user, to follow it (also, it can be different for other Linux distro/window manager). So, I have decided to just allow to provide simple OS X icns file.

Is the use of external config file now deprecated?

Yes. /~https://github.com/loopline-systems/electron-builder#distributable-format-configuration is a preferred way.

Will it be possible in the feature to customize the name of the build folder

Just ask. Do you like #184?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants