Re: [CMake] Desktop icon not safe (missing +x ) on cmake deb file

2017-03-19 Thread Hendrik Sattler
Hi,

Desktop files and icons do not need any execute permissions. They are only data 
files. The executable that the desktop file points to must be executable, 
though. To mount the NTFS partition as a user, use either pmount or your 
desktop mount utility.

OTOH, you make your life unusual hard by using NTFS on Linux for more than pure 
data storage.

HS


Am 19. März 2017 20:41:30 MEZ schrieb "Gonzalo Garramuño" :
>
>
>El 19/03/2017 a las 15:13, Gonzalo Garramuño escribió:
>> Hi,
>>
>> I had a program which I compile with cmake.  This program was on an 
>> NTFS partition with permissions: defaults.  This meant all files were
>
>> owned by root with 777 permissions.   This worked fine but it was not
>
>> secure and created problems with the postrm/posinst scripts.
>>
>> Recently I tried changing my fstab to mount the partition with user 
>> and permissions,like:
>>
>> UUID=98222A3D222A20AC  /media/gga/Datos ntfs-3g 
>> auto,users,permissions,exec 0 0
>>
>> Now, when I package my application into a deb file, it works.  I get:
>>
>> -rw-r--r-- 1 gga gga 24M mar 19 14:55 mrViewer-v3.5.4-Linux-64.deb
>>
>I figured it out.  For reference, I had to change the fstab file to:
>
>UUID=98222A3D222A20AC  /media/gga/Datos ntfs-3g 
>auto,users,permissions,exec,uid=1000,gid=1000,umask=022 0 0

-- 
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Re: [CMake] Desktop icon not safe (missing +x ) on cmake deb file

2017-03-19 Thread Gonzalo Garramuño



El 19/03/2017 a las 15:13, Gonzalo Garramuño escribió:

Hi,

I had a program which I compile with cmake.  This program was on an 
NTFS partition with permissions: defaults.  This meant all files were 
owned by root with 777 permissions.   This worked fine but it was not 
secure and created problems with the postrm/posinst scripts.


Recently I tried changing my fstab to mount the partition with user 
and permissions,like:


UUID=98222A3D222A20AC  /media/gga/Datos ntfs-3g 
auto,users,permissions,exec 0 0


Now, when I package my application into a deb file, it works.  I get:

-rw-r--r-- 1 gga gga 24M mar 19 14:55 mrViewer-v3.5.4-Linux-64.deb


I figured it out.  For reference, I had to change the fstab file to:

UUID=98222A3D222A20AC  /media/gga/Datos ntfs-3g 
auto,users,permissions,exec,uid=1000,gid=1000,umask=022 0 0


--
Gonzalo Garramuño

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake


[CMake] Desktop icon not safe (missing +x ) on cmake deb file

2017-03-19 Thread Gonzalo Garramuño

Hi,

I had a program which I compile with cmake.  This program was on an NTFS 
partition with permissions: defaults.  This meant all files were owned 
by root with 777 permissions.   This worked fine but it was not secure 
and created problems with the postrm/posinst scripts.


Recently I tried changing my fstab to mount the partition with user and 
permissions,like:


UUID=98222A3D222A20AC  /media/gga/Datos ntfs-3g 
auto,users,permissions,exec 0 0


Now, when I package my application into a deb file, it works.  I get:

-rw-r--r-- 1 gga gga 24M mar 19 14:55 mrViewer-v3.5.4-Linux-64.deb

However upon installation of the deb file under root, I get an icon in 
the desktop that is not executable. The desktop file that gets created 
from a desktop.in config file, which has permissions like:


-rwxrwxrwx 1 gga root 1,2K feb 21 12:14 mrViewer.desktop.in

and the resulting .desktop file has permissions like:

-rwxrwxrwx 1 gga root 1,2K mar 14 09:36 mrViewer-v3.5.4.desktop

So it should be executable and it should get installed with same 
permissions.   However, this does not work.


I am at a loss on what to try.  Any help is appreciated.

--
Gonzalo Garramuño

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake