Skip to content

XFCE's Launcher wants the .desktop file to be +x as well #6558

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

Merged
merged 2 commits into from
Aug 1, 2017

Conversation

herrold
Copy link
Contributor

@herrold herrold commented Jul 26, 2017

-- add a --mode 755 for it

solves an issue in #4581

@facchinm
Copy link
Member

From xdg-desktop-menu man page (http://manpages.ubuntu.com/manpages/zesty/man1/xdg-desktop-menu.1.html) it looks like --mode can only accept user or system as arguments, thus the patch would lead to failure when installing. I believe the chmod +x fix should be applied to "${TMP_DIR}/${RESOURCE_NAME}.desktop" and then xdg-desktop-menu should be called. Could you please double check the patch on another Linux distro? Thanks!

Copy link
Member

@facchinm facchinm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From http://manpages.ubuntu.com/manpages/zesty/man1/xdg-desktop-menu.1.html it looks like --mode only accepts system or user, not "permission bits"

@herrold
Copy link
Contributor Author

herrold commented Jul 27, 2017

I will deploy a Ubuntu and see

add this to the build specification /.xml instead
@herrold
Copy link
Contributor Author

herrold commented Jul 27, 2017

It does appear in my Ubuntu that I was using the Unix 'free desktop' install hammer improperly ..
I have reverted that, and moved the needed change into 'build.xml' ...
testing locally

@herrold
Copy link
Contributor Author

herrold commented Jul 27, 2017

I have tested with the change at the ..xml build instructions per my revised pathc. It seems to work just fine, and without the prior stderr noise

Arduino-1 arduino-1.8.4-linux64.tar.xz Arduino-daily-20170727
[herrold@centos-7 herrold]$ mkdir testing
[herrold@centos-7 herrold]$ cp arduino-1.8.4-linux64.tar.xz testing/
[herrold@centos-7 herrold]$ cd testing/
[herrold@centos-7 testing]$ unxz arduino-1.8.4-linux64.tar.xz
[herrold@centos-7 testing]$ tar xf arduino-1.8.4-linux64.tar
[herrold@centos-7 testing]$ cd arduino-1.8.4/
[herrold@centos-7 arduino-1.8.4]$ ./uninstall.sh
Removing desktop shortcut and menu item for Arduino IDE... done!
[herrold@centos-7 arduino-1.8.4]$ ./install.sh
Adding desktop shortcut, menu item and file associations for Arduino IDE... done!
[herrold@centos-7 arduino-1.8.4]$

and manually inspecting the file:

[herrold@centos-7 arduino-1.8.4]$ ls -al ~/Desktop/desktop
-rwx------. 1 herrold herrold 402 Jul 27 13:34 /home/herrold/Desktop/arduino-arduinoide.desktop

Starting it with a 'terminal' window enabled is silent except for an error I have not tracked down yet:

 Picked up JAVA_TOOL_OPTIONS: 
 Error parsing gtk-icon-sizes string: ''

As such, I think this patch is ready to go production -- please re-review

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

Successfully merging this pull request may close these issues.

2 participants