Riccardo Mottola
bb2c4f4978
resolve links, so that e.g /home/xxx /usr/home/xxx match
2025-02-07 03:14:49 +01:00
rfm
7a98157dc7
gnustep_global_lock is removed
2024-05-30 10:35:02 +01:00
Frederik Carlier
31a71a1090
NSWorkspace: Throw a descriptive exception when make_services could not be found ( #208 )
...
`[NSTask launchPathForTool: @"make_services"]; can return nil when the tool is not found. In this case, [NSTask launchedTaskWithLaunchPath] would raise a NSInvalidArgumentException with error message "NSTask - no launch path set" which is not very descriptive.
2023-10-11 17:54:38 +02:00
Gregory John Casamento
92d27c494f
Add defines for export of classes to DLL when building on WIndows
2022-09-29 12:09:13 -04:00
fredkiefer
60fc987fb7
Fix compiler warnings
2020-01-20 20:57:32 +01:00
Riccardo Mottola
682aa3ccdc
Do guard includes for getmntinfo and mntent separately, should help building on Debian/kFreeBSD and fix 55526, but could need more work.
2019-01-21 23:23:16 +01:00
Riccardo Mottola
b8e6de05a3
On linux, try to read /sys/block/xxx/removable information to get information about removable volumes, while continue honoring preferences. This can be a little inefficient if called for each volume. Furthermore in mountedLocalVolumePaths, enhance skipping reserved mount names by using filesystem type also if getmmntent is available.
2018-11-19 01:49:02 +01:00
Wolfgang Lux
bc9b909528
Change mlock in NSWorkspace into a private variable to avoid name
...
conflict with a libc function on Linux.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40264 72102866-910b-0410-8b05-ffd578937521
2016-12-15 10:59:09 +00:00
Richard Frith-MacDonald
b8d286ba7e
Create lock in +initialize so it can safely be used to prevent threads in the
...
same process from trying to obtain the distributed lock concurrently.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40174 72102866-910b-0410-8b05-ffd578937521
2016-10-24 13:45:56 +00:00
Gregory John Casamento
7ea5efb7eb
Fix for lock issue in gui when starting applications on some platforms. Please try and give feedback as this issue is not consistent. Tested by myself and rmottola.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40170 72102866-910b-0410-8b05-ffd578937521
2016-10-24 08:07:49 +00:00
Riccardo Mottola
4d9feda044
Check explicitely for f_owner and use f_owner and f_flag if checked
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39991 72102866-910b-0410-8b05-ffd578937521
2016-07-12 23:27:31 +00:00
Riccardo Mottola
d49cafad71
cast HINSTANCE to int, which is correct since MSDN docs suggest that, it is not a true HINSTANCE
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39985 72102866-910b-0410-8b05-ffd578937521
2016-07-12 12:54:33 +00:00
Riccardo Mottola
e6856ee469
clean up comments and code a little
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39984 72102866-910b-0410-8b05-ffd578937521
2016-07-12 12:39:54 +00:00
Riccardo Mottola
2b2964043a
Prefer statvfs() over statfs(), use both on linux, disable fs name on unknown systems
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39975 72102866-910b-0410-8b05-ffd578937521
2016-07-11 23:41:48 +00:00
Riccardo Mottola
76ba8b1c9e
tweak redefine condition
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39973 72102866-910b-0410-8b05-ffd578937521
2016-07-11 13:58:46 +00:00
Riccardo Mottola
baa5ac40aa
Explicitely check for statfs/statvfs flags member
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39896 72102866-910b-0410-8b05-ffd578937521
2016-06-21 15:43:27 +00:00
Riccardo Mottola
a26b5a6b25
Add Application folder (patch by Bertrand Dekoninck)
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39627 72102866-910b-0410-8b05-ffd578937521
2016-04-06 01:01:58 +00:00
Riccardo Mottola
dfc80058a4
tag is NSInteger* not int* in recent AppKit
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39581 72102866-910b-0410-8b05-ffd578937521
2016-03-22 17:17:58 +00:00
Riccardo Mottola
93018cffb2
Always traverse links explicitely and get the original path to do icon lookup, not just for Symliks. The symlink may be infact in the middle of the path, not just the last one
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39525 72102866-910b-0410-8b05-ffd578937521
2016-03-10 22:59:46 +00:00
Riccardo Mottola
e00f1870c6
Simplify code by using stringByDeletingLastPathComponent
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39521 72102866-910b-0410-8b05-ffd578937521
2016-03-10 17:42:21 +00:00
Riccardo Mottola
7ff3dd081b
Add fall-back that if a folder image is not found, the generic folde ricon is picked up. Also add Movies special folders
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39513 72102866-910b-0410-8b05-ffd578937521
2016-03-09 23:39:52 +00:00
Riccardo Mottola
bc3ead8d69
use NSOpenStepRootDirectory instead of hard-coded /
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39512 72102866-910b-0410-8b05-ffd578937521
2016-03-09 23:19:54 +00:00
Riccardo Mottola
fe8bcb804b
cleaner way of retrieving Images and Music paths
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39511 72102866-910b-0410-8b05-ffd578937521
2016-03-09 23:11:29 +00:00
Riccardo Mottola
3dc638d6b6
When looking for an icon, check if it is a symbolic link and get the icon of its destination. Behaviour verified on Apple
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39480 72102866-910b-0410-8b05-ffd578937521
2016-03-08 14:19:07 +00:00
Riccardo Mottola
279193b644
fix typo
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39430 72102866-910b-0410-8b05-ffd578937521
2016-02-29 21:14:57 +00:00
Riccardo Mottola
10b3c0ff94
quick workaround for GNU HURD, full configure test would be needed
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39427 72102866-910b-0410-8b05-ffd578937521
2016-02-29 13:27:09 +00:00
Riccardo Mottola
2031571d37
add solaris special case
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39384 72102866-910b-0410-8b05-ffd578937521
2016-02-16 22:42:59 +00:00
Riccardo Mottola
31535ac6eb
we need those headers for getuid() too not just getmntent
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39383 72102866-910b-0410-8b05-ffd578937521
2016-02-16 22:41:31 +00:00
Riccardo Mottola
30047756ef
Add missing implementation, by mounting exclusively the path specified in GSRemovableMediaPaths
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39378 72102866-910b-0410-8b05-ffd578937521
2016-02-16 17:23:45 +00:00
Riccardo Mottola
01e71d106c
Use standard setmntent to open file and remember to close it with endmntent! Try better guess to use system defines to get mttab path
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39377 72102866-910b-0410-8b05-ffd578937521
2016-02-16 13:56:01 +00:00
Riccardo Mottola
2589ad3e7d
Enhance unmount with eject support on certain platforms, generate NSWorkspaceWillUnmountNotification notification.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39370 72102866-910b-0410-8b05-ffd578937521
2016-02-13 22:20:20 +00:00
Riccardo Mottola
572d15360e
fix typo
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39369 72102866-910b-0410-8b05-ffd578937521
2016-02-13 15:18:59 +00:00
Riccardo Mottola
7d7cf59383
Try to support volume information on Linux better as well as using GSRemovableMediaPaths defaults for removable information (compared to nothing at all).
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39363 72102866-910b-0410-8b05-ffd578937521
2016-02-12 12:09:23 +00:00
Riccardo Mottola
4e07058985
minor cleanup
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39359 72102866-910b-0410-8b05-ffd578937521
2016-02-10 23:18:00 +00:00
David Chisnall
4850a9feac
Fix all current compiler warnings on FreeBSD/x86-64.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36038 72102866-910b-0410-8b05-ffd578937521
2013-01-30 09:48:54 +00:00
Fred Kiefer
554390210e
* Source/NSWorkspace.m (-_openUnknown:): New method that starts an
...
operation system specific application for files or URL that
could
not be handled by GNUstep applications. Based on patch by Julian
Mayer <julian@corecode.at>.
* Source/NSWorkspace.m
* (-openFile:withApplication:andDeactivate:,
-openTempFile:, -openURL:): Use this new method.
* Documentation/GuiUser/DefaultsSummary.gsdoc: Document the new
setting GSUnknownFileTool that allows to define a default
application.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35246 72102866-910b-0410-8b05-ffd578937521
2012-06-29 12:54:19 +00:00
Fred Kiefer
74139f4848
* Source/NSPasteboard.m (NSURL-writeToPasteboard:): Revert the
...
last change.
* Source/NSWorkspace.m (-openURL:): Declare the URL pasteboard
type here.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35110 72102866-910b-0410-8b05-ffd578937521
2012-04-24 16:54:53 +00:00
Fred Kiefer
191d9619d6
Add a few MacOSX methods with dummy implementations.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33281 72102866-910b-0410-8b05-ffd578937521
2011-06-11 15:48:08 +00:00
Riccardo Mottola
81e5aa9539
redefine statvfs only for netbsd >= 3.0
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32762 72102866-910b-0410-8b05-ffd578937521
2011-04-01 16:29:18 +00:00
Fred Kiefer
412547c233
Small bug fixes found by static analyser.
...
Plus a huge change on NSComboBoxCell after years of testing :-)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32585 72102866-910b-0410-8b05-ffd578937521
2011-03-14 21:45:39 +00:00
Fred Kiefer
b7d056ae43
Removed dead assignments found by static code analyser.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32551 72102866-910b-0410-8b05-ffd578937521
2011-03-13 15:26:20 +00:00
Richard Frith-MacDonald
e1e1662419
iminor tidyup and caching fix
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31918 72102866-910b-0410-8b05-ffd578937521
2011-01-20 14:59:50 +00:00
Wolfgang Lux
07e61a136c
Improve implementation of NSWorkspace methods querying volume and file
...
system information.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31795 72102866-910b-0410-8b05-ffd578937521
2010-12-29 13:03:20 +00:00
Wolfgang Lux
3ea03c38f7
Introduce (private) NSWorkspace notification to propagate changes of
...
the application or icon associated with a file type and URL scheme,
respectively.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31794 72102866-910b-0410-8b05-ffd578937521
2010-12-29 12:19:00 +00:00
Riccardo Mottola
774ac5ba02
added Icon for the Music folder
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31731 72102866-910b-0410-8b05-ffd578937521
2010-12-14 10:22:50 +00:00
Riccardo Mottola
d4a93852ff
Added handling of a Desktop icon (and added the icon itself)
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31713 72102866-910b-0410-8b05-ffd578937521
2010-12-06 00:46:58 +00:00
Riccardo Mottola
fc3eab7928
Cache folders and their assdociation with icon names in dictionaries
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31611 72102866-910b-0410-8b05-ffd578937521
2010-11-13 21:50:41 +00:00
Riccardo Mottola
70237f06e7
Handling of icons for folders of type document, image, system and library
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31605 72102866-910b-0410-8b05-ffd578937521
2010-11-11 23:29:22 +00:00
Wolfgang Lux
782128949e
Add methods to manage the user's preferred applications for URL
...
schemes to NSWorkspace.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31523 72102866-910b-0410-8b05-ffd578937521
2010-10-18 09:04:18 +00:00
Wolfgang Lux
a81934706f
Fix bug where NSWorkspace did ignore the user's preferred application
...
when computing the icon associated with a file type.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31515 72102866-910b-0410-8b05-ffd578937521
2010-10-16 07:45:48 +00:00